class documentation
class _StoreArgument(_BaseStoreArgument): (source)
Class representing a store argument to be parsed by an argparse.ArgumentsParser. This is based on the parameters passed to argparse.ArgumentsParser.add_message. See: https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument
Method | __init__ |
Undocumented |
Instance Variable | choices |
A list of possible choices for the argument. |
Instance Variable | metavar |
The metavar of the argument. |
Instance Variable | type |
A transformer function that returns a transformed type of the argument. |
Inherited from _BaseStoreArgument
:
Instance Variable | action |
The action to perform with the argument. |
Instance Variable | default |
The default value of the argument. |
Inherited from _Argument
(via _BaseStoreArgument
):
Instance Variable | flags |
The name of the argument. |
Instance Variable | help |
The description of the argument. |
Instance Variable | hide |
Whether to hide this argument in the help message. |
Instance Variable | section |
The section to add this argument to. |
def __init__(self, *, flags:
list[ str]
, action: str
, default: _ArgumentTypes
, arg_type: str
, choices: list[ str]|None
, arg_help: str
, metavar: str
, hide_help: bool
, section: str|None
):
(source)
¶
Undocumented