A flag of a command, as data: aliases, negation and scope as well as its type.
Attributes#
| Attribute | Type | Description |
|---|---|---|
aliases | tuple[str, ...] | Alias names without dashes. |
hidden | bool | |
optional_value | str | None | |
negation | str | None | The long name that sets a boolean flag to false. |
scope | Scope |
Functions#
__init__#
__init__(name, description, type, type_name, metavar, required, fallbacks, variadic, annotations, aliases, hidden, optional_value, negation, scope) -> None| Parameter | Type | Description |
|---|---|---|
name | str | |
description | str | None | |
type | Type | |
type_name | str | |
metavar | str | None | |
required | bool | |
fallbacks | tuple[Fallback, ...] | |
variadic | VariadicBounds | None | |
annotations | Context[Any] | |
aliases | tuple[str, ...] | |
hidden | bool | |
optional_value | str | None | |
negation | str | None | |
scope | Scope |