Module Args Reference

Access to command line arguments

Constants

This section is empty.

Types

This section is empty.

Variables

This section is empty.

Procedures

PROCEDURE Count (): INTEGER;

Return the number of command line arguments.

If Count() returns N, then you can call Get(x) with 0 <= x <= N.

PROCEDURE Get (n: INTEGER; VAR s: ARRAY OF CHAR);

Given the number n returns the nth argument as string s.

n must be in range 0 <= n <= Count().

Argument 0 is the name of the program as it was executed from the console.

The proper arguments start with index 1.

PROCEDURE GetInt (n: INTEGER): INTEGER;

Given the number n returns the nth argument as integer i.

If the argument is not a valid integer, returns 0.