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 tellendil
Recipients tellendil
Date 2015-05-11.14:15:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431353733.91.0.614025540349.issue24166@psf.upfronthosting.co.za>
In-reply-to
Content
When creating a ArgumentParser on which we attach a subparser with different options and then add a nargs="+" argument to the initial parser, the command format string generated does not match the behavior.

for example it would generate :
argparse_error.py [-h] {ls,du} ... vm [vm ...]

but only accept one vm.

I would suspect a bug when parsing the arguments (as the help meets the desired behavior).

Attached is a little script to reproduce the error.

Thank you !
History
Date User Action Args
2015-05-11 14:15:33tellendilsetrecipients: + tellendil
2015-05-11 14:15:33tellendilsetmessageid: <1431353733.91.0.614025540349.issue24166@psf.upfronthosting.co.za>
2015-05-11 14:15:33tellendillinkissue24166 messages
2015-05-11 14:15:33tellendilcreate