CommandParser¶
Constructors¶
create¶
Creates a new parser for a given command spec.
Parameters¶
- spec': CommandSpec box
Returns¶
- CommandParser box^
Public Functions¶
parse¶
Parses all of the command line tokens and env vars and returns a Command, or the first SyntaxError.
fun box parse(
argv: Array[String val] box,
envs: (Array[String val] box | None val) = reference)
: (Command box | CommandHelp box | SyntaxError val)
Parameters¶
Returns¶
- (Command box | CommandHelp box | SyntaxError val)