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 a648813 commit 37425feCopy full SHA for 37425fe
1 file changed
Doc/library/argparse.rst
@@ -981,8 +981,8 @@ the various :class:`ArgumentParser` actions. The two most common uses of it are
981
(like ``-f`` or ``--foo``) and ``nargs='?'``. This creates an optional
982
argument that can be followed by zero or one command-line arguments.
983
When parsing the command line, if the option string is encountered with no
984
- command-line argument following it, the value of ``const`` will be assumed to
985
- be ``None`` instead. See the nargs_ description for examples.
+ command-line argument following it, the value from ``const`` will be used.
+ See the nargs_ description for examples.
986
987
.. versionchanged:: 3.11
988
``const=None`` by default, including when ``action='append_const'`` or
0 commit comments