A command path as data: its flags, arguments, subcommands and examples.
Attributes#
| Attribute | Type | Description |
|---|---|---|
path | tuple[str, ...] | |
name | str | |
alias | str | None | |
description | str | None | |
short_description | str | None | |
unlisted | bool | |
examples | tuple[ExampleDoc, ...] | The examples for |
annotations | Context[Any] | |
flags | tuple[Flag, ...] | Local flags, then those shared by ancestors from the root down, then global flags with the built-ins first. |
arguments | tuple[Argument, ...] | |
subcommands | tuple[Subcommand, ...] |
Functions#
__init__#
__init__(path, name, alias, description, short_description, unlisted, examples, annotations, flags, arguments, subcommands) -> None| Parameter | Type | Description |
|---|---|---|
path | tuple[str, ...] | |
name | str | |
alias | str | None | |
description | str | None | |
short_description | str | None | |
unlisted | bool | |
examples | tuple[ExampleDoc, ...] | |
annotations | Context[Any] | |
flags | tuple[Flag, ...] | |
arguments | tuple[Argument, ...] | |
subcommands | tuple[Subcommand, ...] |