Command Line Interpreter Tutorial
Program Arguments
If command line include additional arguments,
they are available to Wafl program as a result of
function cmdLineArgs(). This function
evaluates a string list. The first element of the
list is the program file name,
or inline specified Wafl expression.
Other elements are command line arguments,
in the order of specification.
Command line interpreter's options are not included. Source code:
clWafl -code cmdLineArgs() -args par1 -par2 "a b c d"
Result:
["cmdLineArgs()", "par1", "-par2", "a b c d"]
|