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 Clint Olsen
Recipients Clint Olsen, eric.smith
Date 2021-02-10.19:30:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612985428.46.0.568256403488.issue43192@roundup.psfhosted.org>
In-reply-to
Content
I think your original suggestion makes sense: '?'

My intuition is that nargs helps argparse discern whether it's dealing with single or multiple values. That may not be what was intended.

There probably shouldn't be multiple ways of indicating an argument is optional. It seems that required= and nargs='?'|'*' combinations could lead to conflicting requirements.
History
Date User Action Args
2021-02-10 19:30:28Clint Olsensetrecipients: + Clint Olsen, eric.smith
2021-02-10 19:30:28Clint Olsensetmessageid: <1612985428.46.0.568256403488.issue43192@roundup.psfhosted.org>
2021-02-10 19:30:28Clint Olsenlinkissue43192 messages
2021-02-10 19:30:28Clint Olsencreate