Returns the number of command line arguments for the command that invoked the program.
Inquiry function
Default integer scalar
The result value is the number of command arguments, not counting the command name. If there are no command arguments, the result value is 0.
integer cmd_count
cmd_count = COMMAND_ARGUMENT_COUNT()
print*, cmd_count
end
$ a.out
0
$ a.out aa
1
$ a.out aa bb
2