A positional argument of a command, as data: name, type, fallbacks and bounds.
Attributes#
| Attribute | Type | Description |
|---|---|---|
name | str | |
description | str | None | |
type | Type | |
type_name | str | The generic type name ( |
metavar | str | None | |
required | bool | Parsing fails when this entry is absent and no fallback on its own path supplies
a value. A |
fallbacks | tuple[Fallback, ...] | The fallbacks on this entry's own path, in the order the parser tries them. |
variadic | VariadicBounds | None | |
annotations | Context[Any] |
Functions#
__init__#
__init__(name, description, type, type_name, metavar, required, fallbacks, variadic, annotations) -> 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] |