We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6544bf4 commit 7eb347bCopy full SHA for 7eb347b
1 file changed
Doc/library/argparse.rst
@@ -1369,6 +1369,10 @@ behavior::
1369
>>> parser.parse_args('--foo XXX'.split())
1370
Namespace(bar='XXX')
1371
1372
+Multiple arguments may share the same ``dest``. By default the value from the
1373
+last such argument given on the command line wins; use ``action='append'`` to
1374
+collect values from all of them into a list instead.
1375
+
1376
.. versionchanged:: 3.15
1377
Single-dash long option now takes precedence over short options.
1378
0 commit comments