8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c36c37 commit 10cf0b8Copy full SHA for 10cf0b8
Doc/library/argparse.rst
@@ -1121,6 +1121,9 @@ is used when no command-line argument was present::
1121
>>> parser.parse_args([])
1122
Namespace(foo=42)
1123
1124
+For required_ arguments, the ``default`` value is ignored. For example, this
1125
+applies to positional arguments with nargs_ values other than ``?`` or ``*``,
1126
+or optional arguments marked as ``required=True``.
1127
1128
Providing ``default=argparse.SUPPRESS`` causes no attribute to be added if the
1129
command-line argument was not present::
0 commit comments