CALL GetArg(Pos, Value)
INTEGER not wider than the default kind; scalar; INTENT(IN).
CHARACTER; scalar; INTENT(OUT).
Sets Value to the Pos-th command-line argument (or to all
blanks if there are fewer than Value command-line arguments);
CALL GETARG(0, value
) sets value to the name of the
program (on systems that support this feature).
See IArgC Intrinsic, for information on how to get the number of arguments.