GH-87358: Add clarification about nargs and default argparse behaviour (GH-124094)
(cherry picked from commit
20ccda000b5f8365d5f864fd07876804157c2378)
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
>>> parser.parse_args([])
Namespace(foo=42)
+For required_ arguments, the ``default`` value is ignored. For example, this
+applies to positional arguments with nargs_ values other than ``?`` or ``*``,
+or optional arguments marked as ``required=True``.
Providing ``default=argparse.SUPPRESS`` causes no attribute to be added if the
command-line argument was not present::