22 NoAction class adds dummy positional arguments to an argument,
23 so sub helper messages can be created
26 argparse (Class): Input
as args
30 kwargs.setdefault(
"default", argparse.SUPPRESS)
31 kwargs.setdefault(
"nargs", 0)
32 super(NoAction, self).
__init__(**kwargs)
34 def __call__(self, parser, namespace, values, option_string = None):
38class ChoicesAction(argparse._StoreAction):
41 ChoicesAction class is used to add extra
choices
42 to a parseargs choices list
45 argparse (Class): Input
as args
52 self.container.add_argument(choice, help = help, action =
"none")
def add_choice(self, choice, help="")
def __init__(self, **kwargs)
def __call__(self, parser, namespace, values, option_string=None)