Command-line arguments is part of Short Circuit's Console Program Basics selection.
Scripted main
See also Program name.

For parsing command line arguments intelligently, see Parsing command-line arguments.

Example command line:

myprogram -c "alpha beta" -h "gamma"

\util.g
 
proc nonrec main() void:
    *char par;
    word i;
    i := 0;
    while par := GetPar(); par ~= nil do
        i := i + 1; 
        writeln(i:3, ": '", par, "'")
    od
corp