dm_arg_parse Function

public function dm_arg_parse(args, ignore_unknown, verbose) result(rc)

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.

Arguments

Type IntentOptional 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.

Return Value integer


Calls

proc~~dm_arg_parse~~CallsGraph proc~dm_arg_parse dm_arg_parse proc~dm_ascii_escape dm_ascii_escape proc~dm_arg_parse->proc~dm_ascii_escape proc~dm_error_out dm_error_out proc~dm_arg_parse->proc~dm_error_out proc~dm_error_out->proc~dm_ascii_escape proc~dm_error_message dm_error_message proc~dm_error_out->proc~dm_error_message proc~dm_stop dm_stop proc~dm_error_out->proc~dm_stop c_exit c_exit proc~dm_stop->c_exit

Called by

proc~~dm_arg_parse~~CalledByGraph proc~dm_arg_parse dm_arg_parse proc~dm_arg_has dm_arg_has proc~dm_arg_has->proc~dm_arg_parse proc~dm_arg_read dm_arg_read proc~dm_arg_read->proc~dm_arg_parse proc~dm_arg_read->proc~dm_arg_has