Public Member Functions | |
| subroutine | dcargsoption0 (arg, options, flag, value, help) |
Definition at line 291 of file dc_args.f90.
| subroutine dc_args::dcargsoption::dcargsoption0 | ( | type(args), intent(inout) | arg, |
| character(len = *), dimension(:), intent(in) | options, | ||
| logical, intent(out) | flag, | ||
| character(len = *), intent(out), optional | value, | ||
| character(len = *), intent(in), optional | help ) |
Configure for getting command line option
Registers and retrieves option information.
Among command line arguments, retrieves information about options given in options to flag and value. If options is given in command line arguments, .true. is returned to flag, otherwise .false. is returned. If the option has a value specified, that value is returned to value. If the option itself is not given, an empty string is returned to value.
help registers a help message about options in arg. This message is output when using subroutine DCArgsHelp. The message changes depending on whether value is given.
Among command line arguments, the following are judged as options:
The option value is the string after "=".
| [in,out] | arg | ARGS derived type variable |
| [in] | options | Array of option names (e.g., '-s', '–size') |
| [out] | flag | Returns .true. if option is found |
| [out] | value | Returns option value if specified (optional) |
| [in] | help | Help message for this option (optional) |
Definition at line 558 of file dc_args.f90.