A command line split by command level: each level's flag values and arguments, the subcommand chosen and the errors found.
Attributes#
| Attribute | Type | Description |
|---|---|---|
flags | Mapping[str, tuple[str, ...]] | |
arguments | tuple[str, ...] | |
subcommand | SelectedTokens | None = None | |
errors | tuple[ParseError, ...] = () |
Functions#
__init__#
__init__(flags, arguments, subcommand=None, errors=()) -> None| Parameter | Type | Description |
|---|---|---|
flags | Mapping[str, tuple[str, ...]] | |
arguments | tuple[str, ...] | |
subcommand | SelectedTokens | None = None | |
errors | tuple[ParseError, ...] = () |