Retrieve the entire command line that was used to invoke the program.
Fortran 2003 and later
command- Shall be of type
characterand of default kind.
Stores the entire command line that was used to invoke the program in
command is not large enough, the command will be truncated.
program test_get_command character(len=255) :: cmd call get_command(cmd) write (*,*) trim(cmd) end program