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 benhoyt
Recipients benhoyt, charlie.proctor, paul.j3, rrt
Date 2017-02-27.14:39:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488206387.49.0.240009390824.issue28609@psf.upfronthosting.co.za>
In-reply-to
Content
I definitely agree with Reuben here -- I just ran into this issue while creating a "production quality" tool, and the help message produced by argparse with nargs='*' confused me too. It's pretty clear that this is a simple bug in argparse's production of that usage message: it says ARGUMENT is required, but it isn't.

However, the workaround of specifying an (unused) default is a reasonable workaround in the meantime -- thanks Paul.
History
Date User Action Args
2017-02-27 14:39:47benhoytsetrecipients: + benhoyt, paul.j3, charlie.proctor, rrt
2017-02-27 14:39:47benhoytsetmessageid: <1488206387.49.0.240009390824.issue28609@psf.upfronthosting.co.za>
2017-02-27 14:39:47benhoytlinkissue28609 messages
2017-02-27 14:39:47benhoytcreate