You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'append' - This stores a list, and appends each argument value to the list. It is useful to allow an option to be specified multiple times. If the default value is non-empty, the default elements will be present in the parsed value for the option, with any values from the command line appended after those default values. Example usage:
However, this documentation does not specify that the default needs to be a list, and cannot be a single value. While this may be obvious in hindsight, a short example would entirely remove this source of confusion.
Activity
GH-139067: Add example for `argparse`'s `append` action (#131389)
pythonGH-139067: Add example for `argparse`'s `append` action (python…
pythonGH-139067: Add example for `argparse`'s `append` action (python…
[3.13] GH-139067: Add example for `argparse`'s `append` action (GH-13…
[3.14] GH-139067: Add example for `argparse`'s `append` action (GH-13…