This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger, vreuter
Date 2021-04-18.04:06:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618718786.85.0.203913037488.issue43876@roundup.psfhosted.org>
In-reply-to
Content
For me, it is the opposite.  I would have been completely surprised if setting nargs caused an optional argument to become required.  

The "nargs" parameter is entirely about the number of data arguments, not about the option itself.   When nargs=1, then one datum is expected.  When nargs=2, two are expected.  The "+" means one or more.  The "*" means two or more.

Sorry you got confused, but I don't think this is a documentation problem.  We have multiple examples of using nargs as intended.
History
Date User Action Args
2021-04-18 04:06:26rhettingersetrecipients: + rhettinger, vreuter
2021-04-18 04:06:26rhettingersetmessageid: <1618718786.85.0.203913037488.issue43876@roundup.psfhosted.org>
2021-04-18 04:06:26rhettingerlinkissue43876 messages
2021-04-18 04:06:26rhettingercreate