See https://docs.python.org/3/library/argparse.html#action:
'append' - This stores a list, and appends each argument value to the list. This is useful to allow an option to be specified multiple times. Example usage:
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo', action='append')
>>> parser.parse_args('--foo 1 --foo 2'.split())
Namespace(foo=['1', '2'])
This feature request is to add an option to defopt.run s.t. parser.add_argument(..., action='append') behavior can be toggled.
See https://docs.python.org/3/library/argparse.html#action:
'append'- This stores a list, and appends each argument value to the list. This is useful to allow an option to be specified multiple times. Example usage:This feature request is to add an option to
defopt.runs.t.parser.add_argument(..., action='append')behavior can be toggled.