num_args()

Returns the number of program arguments.

Syntax

num_args()
  RETURNS INTEGER

Usage

Returns the number of arguments passed to the program.

The function returns 0 if no arguments are passed to the program.

Use the arg_val() function to get a command line argument at a given position.