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 vreuter
Recipients rhettinger, vreuter
Date 2021-04-18.04:52:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618721520.93.0.356050655927.issue43876@roundup.psfhosted.org>
In-reply-to
Content
There are two small related issues, but I'm not sure how they relate and/or if they've been addressed previously, so I'm sorry for duplicate messaging if that's the case.

1. If it's the case that absent an explicit `required=<bool>` statement, the option name prefix (hyphen(s) or not) determines whether the option's required, then it seems contradictory to have nargs='*' make a positional arg behave as if it's optional (i.e., no parse error if omitted).

2. Prefixing the option name with hyphen(s) seems to remove any distinction between `nargs='*'` and `nargs='+'` (at least without passing anything explicit about required)
History
Date User Action Args
2021-04-18 04:52:00vreutersetrecipients: + vreuter, rhettinger
2021-04-18 04:52:00vreutersetmessageid: <1618721520.93.0.356050655927.issue43876@roundup.psfhosted.org>
2021-04-18 04:52:00vreuterlinkissue43876 messages
2021-04-18 04:52:00vreutercreate