Parses command-line for given arguments. Error messages are printed
to standard error by default, unless verbose
is .false.
.
The function returns the following error codes:
E_ARG_INVALID
if an argument has been passed already.E_ARG_NO_VALUE
if an argument has been passed without value.E_ARG_LENGTH
if one of the argument values has wrong length.E_ARG_UNKNOWN
if one of the arguments parsed is not known.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(arg_type), | intent(inout) | :: | args(:) |
Arguments array. |
||
logical, | intent(in), | optional | :: | ignore_unknown |
Allow unknown arguments. |
|
logical, | intent(in), | optional | :: | verbose |
Print error messages to stderr. |