command_argument_count(): Number of Command Line Arguments

Get number of command line arguments.

Declaración

Sintaxis

retval = command_argument_count()
function command_argument_count()

Argumentos

None.

Valores devueltos

The return value is of integer type and of default kind.

Descripción

command_argument_count() returns the number of arguments passed on the command line when the named program was invoked.

Tipos

Any.

Ejemplos

program intrinsics_command_argument_count
    implicit none
	print *, command_argument_count()
end program

Result:

intrinsics_command_argument_count a b
2

Ver también