ParseKwargs#
- class petpal.meta.auto_cli.ParseKwargs(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)#
Bases:
argparse.ActionAction to parse keyword arguments.
- __call__(parser, namespace, values, option_string=None)#
Creates a dictionary within the args namespace holding keyword arguments.
Kwargs are used like so: –kwargs int:frame=4 Each kwarg must specify type before a colon, followed by the argument name, an equals sign to delimit the argument value. Kwargs are currently limited to a small number of standard types: str, float, int, bool.
- _get_kwargs()#
- format_usage()#