gm2-libs/Args (The GNU Modula-2 Compiler)

#### 4.1.3 gm2-libs/Args ¶

    DEFINITION MODULE Args ;

    EXPORT QUALIFIED GetArg, Narg ;

    (*
       GetArg - returns the nth argument from the command line.
                The success of the operation is returned.
    *)

    PROCEDURE GetArg (VAR a: ARRAY OF CHAR; n: CARDINAL) : BOOLEAN ;

    (*
       Narg - returns the number of arguments available from
              command line.
    *)

    PROCEDURE Narg () : CARDINAL ;

    END Args.