File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -846,8 +846,10 @@ how the command-line arguments should be handled. The supplied actions are:
846846 Namespace(foo=True, bar=False, baz=True)
847847
848848* ``'append' `` - This stores a list, and appends each argument value to the
849- list. This is useful to allow an option to be specified multiple times.
850- Example usage::
849+ list. It is useful to allow an option to be specified multiple times.
850+ If the default value is non-empty, the default elements will be present
851+ in the parsed value for the option, with any values from the
852+ command line appended after those default values. Example usage::
851853
852854 >>> parser = argparse.ArgumentParser()
853855 >>> parser.add_argument('--foo', action='append')
You can’t perform that action at this time.
0 commit comments