|
M_CLI2
M_CLI2 module (Fortran)
|
Data Types | |
| interface | cgets |
| interface | dgets |
| interface | get_args |
| interface | get_args_fixed_length |
| interface | get_args_fixed_size |
| interface | igets |
| interface | insert_ |
| interface | lgets |
| interface | locate_ |
| type | option |
| interface | remove_ |
| interface | replace_ |
| interface | rgets |
| interface | sgets |
| interface | str |
Functions/Subroutines | |
| subroutine, private | check_commandline (help_text, version_text) |
| subroutine, public | set_args (prototype, help_text, version_text, string, prefix, ierr, errmsg) |
| character(len=:) function, allocatable, public | get_subcommand () |
| subroutine | set_usage (keyword, description, value) |
| recursive subroutine, private | prototype_to_dictionary (string) |
| elemental impure logical function, public | specified (key) |
| subroutine, private | update (key, val) |
| subroutine, private | wipe_dictionary () |
| character(len=:) function, allocatable, private | get (key) |
| subroutine, private | prototype_and_cmd_args_to_nlist (prototype, string) |
| subroutine | expand_response (name) |
| subroutine | get_prototype (name, prototype) |
| integer function | fileopen (filename, message) |
| character(len=:) function, allocatable | get_env (name, default) |
| character(len=:) function, allocatable | join_path (a1, a2, a3, a4, a5) |
| character(len=:) function, allocatable | get_name () |
| character(:) function, allocatable | basename (path, suffix) |
| character(len=1) function | separator () |
| subroutine | cmd_args_to_dictionary () |
| subroutine, public | print_dictionary (header, stop) |
| logical function | strtok (source_string, itoken, token_start, token_end, delimiters) |
| subroutine | get_fixedarray_class (keyword, generic, delimiters) |
| subroutine | get_anyarray_l (keyword, larray, delimiters) |
| subroutine | get_anyarray_d (keyword, darray, delimiters) |
| subroutine | get_anyarray_i (keyword, iarray, delimiters) |
| subroutine | get_anyarray_r (keyword, rarray, delimiters) |
| subroutine | get_anyarray_x (keyword, xarray, delimiters) |
| subroutine | get_anyarray_c (keyword, strings, delimiters) |
| subroutine | get_args_fixed_length_a_array (keyword, strings, delimiters) |
| subroutine | get_fixedarray_i (keyword, iarray, delimiters) |
| subroutine | get_fixedarray_r (keyword, rarray, delimiters) |
| subroutine | get_fixed_size_complex (keyword, xarray, delimiters) |
| subroutine | get_fixedarray_d (keyword, darr, delimiters) |
| subroutine | get_fixedarray_l (keyword, larray, delimiters) |
| subroutine | get_fixedarray_fixed_length_c (keyword, strings, delimiters) |
| subroutine | get_scalar_d (keyword, d) |
| subroutine | get_scalar_real (keyword, r) |
| subroutine | get_scalar_i (keyword, i) |
| subroutine | get_scalar_anylength_c (keyword, string) |
| elemental impure subroutine | get_args_fixed_length_scalar_c (keyword, string) |
| subroutine | get_scalar_complex (keyword, x) |
| subroutine | get_scalar_logical (keyword, l) |
| integer function | longest_command_argument () |
| subroutine | journal (where, g0, g1, g2, g3, g4, g5, g6, g7, g8, g9, ga, gb, gc, gd, ge, gf, gg, gh, gi, gj, sep) |
| character(len=:) function, allocatable | msg_scalar (generic0, generic1, generic2, generic3, generic4, generic5, generic6, generic7, generic8, generic9, generica, genericb, genericc, genericd, generice, genericf, genericg, generich, generici, genericj, sep) |
| character(len=:) function, allocatable | msg_one (generic0, generic1, generic2, generic3, generic4, generic5, generic6, generic7, generic8, generic9, sep) |
| character(:) function, allocatable | upper (str) |
| character(:) function, allocatable | lower (str) |
| subroutine | a2i (chars, valu, ierr) |
| subroutine | a2d (chars, valu, ierr, onerr) |
| subroutine | split (input_line, array, delimiters, order, nulls) |
| subroutine | crack_cmd (cmd, old, new, ierr) |
| character(len=:) function, allocatable | replace_str (targetline, old, new, ierr, cmd, range) |
| character(len=:) function, allocatable | quote (str, mode, clip) |
| pure character(len=:) function, allocatable | unquote (quoted_str, esc) |
| logical function | decodebase (string, basein, out_baseten) |
| character(len=length) function | lenset (line, length) |
| subroutine, private | locate_c (list, value, place, ier, errmsg) |
| subroutine, private | remove_c (list, place) |
| subroutine, private | remove_l (list, place) |
| subroutine, private | remove_i (list, place) |
| subroutine, private | replace_c (list, value, place) |
| subroutine, private | replace_l (list, value, place) |
| subroutine, private | replace_i (list, value, place) |
| subroutine, private | insert_c (list, value, place) |
| subroutine, private | insert_l (list, value, place) |
| subroutine, private | insert_i (list, value, place) |
| subroutine | many_args (n0, g0, n1, g1, n2, g2, n3, g3, n4, g4, n5, g5, n6, g6, n7, g7, n8, g8, n9, g9, na, ga, nb, gb, nc, gc, nd, gd, ne, ge, nf, gf, ng, gg, nh, gh, ni, gi, nj, gj) |
| integer function, public | iget (n) |
| real function, public | rget (n) |
| real(kind=dp) function, public | dget (n) |
| character(len=:) function, allocatable, public | sget (n) |
| complex function, public | cget (n) |
| logical function, public | lget (n) |
| integer function, dimension(:), allocatable | igs (n) |
| real function, dimension(:), allocatable | rgs (n) |
| real(kind=dp) function, dimension(:), allocatable | dgs (n) |
| character(len=:) function, dimension(:), allocatable | sgs (n, delims) |
| complex function, dimension(:), allocatable | cgs (n) |
| logical function, dimension(:), allocatable | lgs (n) |
| integer function, dimension(:), allocatable | ig () |
| real function, dimension(:), allocatable | rg () |
| real(kind=dp) function, dimension(:), allocatable | dg () |
| logical function, dimension(:), allocatable | lg () |
| complex function, dimension(:), allocatable | cg () |
| character(len=:) function, dimension(:), allocatable | sg () |
| subroutine | mystop (sig, msg) |
| function | atleast (line, length, pattern) |
| subroutine | locate_key (value, place) |
| elemental impure subroutine, public | set_mode (key, mode) |
Variables | |
| integer, parameter, private | dp =kind(0.0d0) |
| integer, parameter, private | sp =kind(0.0) |
| character(len= *), parameter | gen ='(*(g0))' |
| character(len=:), dimension(:), allocatable, public | unnamed |
| character(len=:), dimension(:), allocatable, public | args |
| character(len=:), allocatable, public | remaining |
| character(len=:), dimension(:), allocatable, save | keywords |
| character(len=:), dimension(:), allocatable, save | shorts |
| character(len=:), dimension(:), allocatable, save | values |
| integer, dimension(:), allocatable, save | counts |
| logical, dimension(:), allocatable, save | present_in |
| logical, dimension(:), allocatable, save | mandatory |
| logical, save | g_debug =.false. |
| logical, save | g_underdash =.false. |
| logical, save | g_ignorecase =.false. |
| logical, save | g_strict =.false. |
| logical, save | g_keyword_single_letter =.true. |
| character(len=:), allocatable, save | g_passed_in |
| logical, save | g_remaining_on |
| logical, save | g_remaining_option_allowed |
| character(len=:), allocatable, save | g_remaining |
| character(len=:), allocatable, save | g_subcommand |
| character(len=:), allocatable, save | g_stop_message |
| integer, save | g_stop |
| logical, save | g_quiet |
| character(len=:), allocatable, save | g_prefix |
| logical, save, public | cli_response_file =.false. |
| logical, save | g_append |
| logical, save | g_options_only |
| logical, save | g_response |
| character(len=:), allocatable, save | g_response_ignored |
|
private |
References decodebase(), journal(), replace_str(), and unquote().


|
private |
|
private |

|
private |
References split().


|
private |
| complex function, public m_cli2::cget | ( | character(len=*), intent(in) | n | ) |
|
private |
|
private |
References default_help(), g_quiet, g_stop_message, get(), journal(), mystop(), and print_dictionary().


|
private |
References args, expand_response(), g_debug, g_keyword_single_letter, g_quiet, g_remaining, g_remaining_on, g_remaining_option_allowed, g_response, g_strict, gen, get(), get_next_argument(), ifnull(), keywords, locate_key(), mandatory, mystop(), print_dictionary(), quote(), unnamed, update(), and upper().


|
private |
|
private |
|
private |
| real(kind=dp) function, public m_cli2::dget | ( | character(len=*), intent(in) | n | ) |
|
private |
|
private |
References g_append, g_debug, gen, get_prototype(), and prototype_to_dictionary().


|
private |
|
private |
References counts, locate_key(), and values.


|
private |
|
private |
References a2d(), counts, journal(), locate_key(), mystop(), replace_str(), split(), and values.


|
private |
|
private |
|
private |
References get_anyarray_d().


|
private |
References get_anyarray_d(), journal(), mystop(), and sp.


|
private |
|
private |
|
private |

|
private |
References get_anyarray_x(), journal(), mystop(), and print_dictionary().


|
private |
References dp, get_fixed_size_complex(), get_fixedarray_d(), get_fixedarray_fixed_length_c(), get_fixedarray_i(), get_fixedarray_l(), get_fixedarray_r(), and mystop().

|
private |
References get_anyarray_d(), journal(), mystop(), and print_dictionary().


|
private |
References counts, journal(), locate_key(), mystop(), print_dictionary(), split(), unquote(), and values.


|
private |
References get_anyarray_d(), journal(), mystop(), and print_dictionary().


|
private |
References get_anyarray_l(), journal(), mystop(), and print_dictionary().


|
private |
References get_anyarray_r(), journal(), mystop(), and print_dictionary().


|
private |

|
private |
References basename(), find_and_read_response_file(), g_debug, gen, get_env(), and get_name().


|
private |
|
private |
|
private |
References get_anyarray_d(), journal(), mystop(), and print_dictionary().


|
private |
|
private |
|
private |
| character(len=:) function, allocatable, public m_cli2::get_subcommand |
References g_options_only, g_subcommand, get_prototype(), longest_command_argument(), split(), and unnamed.

|
private |
| integer function, public m_cli2::iget | ( | character(len=*), intent(in) | n | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
References replace_str(), and separator().


|
private |

|
private |
|
private |
| logical function, public m_cli2::lget | ( | character(len=*), intent(in) | n | ) |
|
private |
|
private |
|
private |
References g_ignorecase, g_underdash, keywords, lower(), replace_str(), and shorts.


|
private |

|
private |

|
private |
|
private |
|
private |
|
private |
References g_quiet, g_stop, g_stop_message, and journal().


| subroutine, public m_cli2::print_dictionary | ( | character(len=*), intent(in), optional | header, |
| logical, intent(in), optional | stop | ||
| ) |
|
private |
References args, cmd_args_to_dictionary(), g_debug, g_passed_in, g_remaining, g_remaining_on, g_remaining_option_allowed, gen, locate_key(), longest_command_argument(), present_in, prototype_to_dictionary(), remaining, unnamed, and update().


|
private |
References g_debug, g_keyword_single_letter, g_remaining_option_allowed, g_response_ignored, gen, locate_key(), and update().


|
private |
References journal(), lower(), and replace_str().


|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
References crack_cmd(), and journal().


|
private |
| real function, public m_cli2::rget | ( | character(len=*), intent(in) | n | ) |
|
private |
|
private |
References get_env().


| subroutine, public m_cli2::set_args | ( | character(len=*), intent(in) | prototype, |
| character(len=*), dimension(:), intent(in), optional | help_text, | ||
| character(len=*), dimension(:), intent(in), optional | version_text, | ||
| character(len=*), intent(in), optional | string, | ||
| character(len=*), intent(in), optional | prefix, | ||
| integer, intent(out), optional | ierr, | ||
| character(len=:), intent(out), optional, allocatable | errmsg | ||
| ) |
References args, check_commandline(), cli_response_file, g_append, g_debug, g_options_only, g_passed_in, g_prefix, g_quiet, g_response, g_response_ignored, g_stop, g_stop_message, gen, get_env(), longest_command_argument(), prototype_and_cmd_args_to_nlist(), split(), unnamed, upper(), and wipe_dictionary().


| elemental impure subroutine, public m_cli2::set_mode | ( | character(len=*), intent(in) | key, |
| logical, intent(in), optional | mode | ||
| ) |
References cli_response_file, g_debug, g_ignorecase, g_strict, g_underdash, journal(), and lower().

|
private |
|
private |
References unnamed.
| character(len=:) function, allocatable, public m_cli2::sget | ( | character(len=*), intent(in) | n | ) |
|
private |
| elemental impure logical function, public m_cli2::specified | ( | character(len=*), intent(in) | key | ) |
|
private |
References lower().


|
private |

|
private |
References quote().


|
private |
References counts, g_append, g_ignorecase, g_underdash, keywords, locate_key(), lower(), mandatory, present_in, replace_str(), shorts, split(), unquote(), and values.


|
private |

|
private |
| character(len=:), dimension(:), allocatable, public m_cli2::args |
| logical, save, public m_cli2::cli_response_file =.false. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| character(len=:), allocatable, public m_cli2::remaining |
|
private |
|
private |
| character(len=:), dimension(:), allocatable, public m_cli2::unnamed |
|
private |
1.8.17