Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Reads all arguments from command-line and prints error message if one
is missing. Returns the error code of the first invalid argument.
The function also parses the command-line arguments for
-v/--version to display the current application and library
version, and -h/--help to output all available command-line
arguments. If one of these arguments is passed, dm_stop(0) is
called afterwards.
Optional argument callback is a routine that outputs the
version information.
The function returns the following error codes:
E_EMPTY if array of arguments is empty.
E_ARG_INVALID if an required argument has not been passed.
E_ARG_NO_VALUE if an argument has been passed without value.
E_ARG_TYPE if an argument has the wrong type.
E_ARG_LENGTH if the length of the argument is wrong.
E_ARG_UNKNOWN if an unknown argument has been passed.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.