Process
CmdLine = [ CmdOptions ] ["-"] [ CmdParameters ]
CmdParameters = { CmdParameter }
CmdParameter = ParamWithoutSpace | "Param With Spaces" | 'Param With Spaces'
CmdOptions = {CmdOption}
CmdOption = "-" | "--" {letter} [ CmdOptionValue | CmdOptionValues ]
CmdOptionValue = "=" | ":" CmdParameter
CmdOptionValues = " " CmdParameters-p="my value" --flag - one two three
-i:10 -n:Bob "one par" two three
--ext "*.txt" .js .html -o=/home/ak/dest /home/ak/in1 /home/ak/in2Operators
Functions
Arg(str name) str
Arg(str name, str def) str
Arg(str name, int def) int
ArgCount() int
Args() arr.str
Args(str name) arr.str
ArgsTail() arr.str
IsArg(str name) bool
Open(str path)
OpenWith(str app, str path)
Run(str cmd, str params...)
SplitCmdLine(str cmdline) arr.str
Start(str cmd, str params...)
Last updated
Was this helpful?