class documentation

class _CallableArgument(_Argument): (source)

View In Hierarchy

Class representing an callable 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 action The action to perform with the argument.
Instance Variable kwargs Any additional arguments passed to the action.
Instance Variable metavar The metavar of the argument.

Inherited from _Argument:

Instance Variable flags The name of the argument.
Instance Variable help The description of the argument.
Instance Variable hide_help 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: type[_CallbackAction], arg_help: str, kwargs: dict[str, Any], hide_help: bool, section: str|None, metavar: str): (source)

The action to perform with the argument.

Any additional arguments passed to the action.

The metavar of the argument. See: https://docs.python.org/3/library/argparse.html#metavar