Next: , Previous: GError Intrinsic, Up: Table of Intrinsic Functions


8.11.9.118 GetArg Intrinsic

     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.