9.113. GETARG

9.113 GETARG — Get command line arguments

Description:
Retrieve the POS-th argument that was passed on the command line when the containing program was invoked.

This intrinsic routine is provided for backwards compatibility with GNU Fortran 77. In new code, programmers should consider the use of the GET_COMMAND_ARGUMENT intrinsic defined by the Fortran 2003 standard.

Standard:
GNU extension
Class:
Subroutine
Syntax:
CALL GETARG(POS, VALUE)
Arguments:
POS Shall be of type INTEGER and not wider than the default integer kind; POS \geq 0
VALUE 登录查看完整内容