Node: GetArg Intrinsic, Next: GetCWD Intrinsic (subroutine), Previous: GError Intrinsic, Up: Table of Intrinsic Functions
CALL GetArg(Pos, Value)
Pos: INTEGER
not wider than the default kind; scalar; INTENT(IN).
Value: CHARACTER
; scalar; INTENT(OUT).
Intrinsic groups: unix
.
Description:
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.