Attributes#
| Attribute | Type | Description |
|---|---|---|
name | str | |
aliases | tuple[str, ...] | |
description | str | None | |
type | FlagType | |
optional_value | bool = False | |
negation | str | Literal[False] | None = None | |
repeatable | bool = False | Whether the flag can be given more than once, so completion keeps offering it after it is used. |
Functions#
__init__#
__init__(name, aliases, description, type, optional_value=False, negation=None, repeatable=False) -> None| Parameter | Type | Description |
|---|---|---|
name | str | |
aliases | tuple[str, ...] | |
description | str | None | |
type | FlagType | |
optional_value | bool = False | |
negation | str | Literal[False] | None = None | |
repeatable | bool = False |