← index

[CLI]Parsed

inherits Object · defined at core/14-cli.qn:13

The parse result: at: reads any declared name (option, positional, rest — a name the spec never declared is a ValueError, so a typo can't read as nil), flag?: a boolean, command the chosen subcommand name (nil without one).

Instance methods

at:

The value under a declared name: an option's String (default applied), a positional's String, the rest-splat's List, a flag's Boolean.

core/14-cli.qn:16

command

The chosen subcommand's name, or nil when the spec has no commands.

core/14-cli.qn:27

flag?:

The flag as a Boolean (sugar over at:).

core/14-cli.qn:24

help?

Whether -h/--help was given (the production parse answers it before this is ever seen; parseFrom: callers check it themselves).

core/14-cli.qn:31