![]() |
libSUFR
a LIBrary of Some Useful Fortran Routines
|
Procedures to handle command-line options and arguments. More...
Go to the source code of this file.
Data Types | |
type | sufr_command_line::cl_options |
Struct to store command-line options. More... | |
Modules | |
module | sufr_command_line |
Procedures to handle command-line options and arguments. | |
Functions/Subroutines | |
subroutine | sufr_command_line::get_command_argument_i (narg, arg, status) |
Get an integer from the command line. | |
subroutine | sufr_command_line::get_command_argument_l (narg, arg, status) |
Get a long integer from the command line. | |
subroutine | sufr_command_line::get_command_argument_d (narg, arg, status) |
Get a double-precision real from the command line. | |
subroutine | sufr_command_line::get_command_argument_r (narg, arg, status) |
Get a single-precision real from the command line. | |
subroutine | sufr_command_line::read_all_commandline_arguments (verbose, narg_max, nargs, arguments) |
Read all the command-line arguments and return them in a character array. | |
subroutine | sufr_command_line::get_commandline_argument_types (verbose, nargs, arguments, types) |
Determine the type of each command-line argument found: | |
subroutine | sufr_command_line::split_short_cl_options (verbose, narg_max, nargs, arguments, types) |
If short command-line options are found (i.e., starting with one dash), split them, e.g. "-bar" -> "-b -a -r". | |
subroutine | sufr_command_line::get_commandline_options_values (verbose, narg_max, nopts, options, values, optypes, cl_option) |
Obtain command-line arguments and reduce them to options, values and types. | |
subroutine | sufr_command_line::print_commandline_options_values (nopts, options, values, optypes, cl_option) |
Print all command-line options and values found to stdOut for debugging. | |
logical function | sufr_command_line::cl_option_present (option, verbose) |
Check whether a command-line option is present. | |
logical function | sufr_command_line::cl_option_var_string (option, string) |
Retrieve the string argument/variable of a command-line option, if it exists. | |
logical function | sufr_command_line::cl_option_var_int (option, intarg) |
Retrieve the integer argument/variable of a command-line option, if it exists. | |
logical function | sufr_command_line::cl_option_var_dbl (option, dblarg) |
Retrieve the floating-point argument/variable of a command-line option, if it exists. | |
Procedures to handle command-line options and arguments.
Definition in file command_line.f90.