Next: , Previous: GETARG, Up: Intrinsic Procedures


7.88 GET_COMMAND — Get the entire command line

Description:
Retrieve the entire command line that was used to invoke the program.
Standard:
Fortran 2003 and later
Class:
Subroutine
Syntax:
CALL GET_COMMAND(COMMAND)
Arguments:

COMMAND Shall be of type CHARACTER and of default kind.

Return value:
Stores the entire command line that was used to invoke the program in COMMAND. If COMMAND is not large enough, the command will be truncated.
Example:
          PROGRAM test_get_command
            CHARACTER(len=255) :: cmd
            CALL get_command(cmd)
            WRITE (*,*) TRIM(cmd)
          END PROGRAM
     

See also:
GET_COMMAND_ARGUMENT, COMMAND_ARGUMENT_COUNT