115. get_command() and get_command_argument() get command line arguments.#

topic: Environment variables

Note

This tip is a draft1.

In Fortran 2003, get_command(command) and get_command_argument(number,value) are subroutines to get the entire command line or the nth argument as character variables, and the function command_argument_count() returns the number of arguments.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.