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 vstinner
Recipients bethard, cstratak, larry, ned.deily, r.david.murray, serhiy.storchaka, vstinner, xiang.zhang
Date 2016-10-11.14:35:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476196503.7.0.125463754733.issue28409@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch should fix the issue.

I didn't know that argparse was so strict: "arg1 -v arg2" is not supported by default, see the issue #14191, whereas it works well with optparse.

The patch uses parse_known_args() as a workaround, and then manually checks for unknown options.
History
Date User Action Args
2016-10-11 14:35:03vstinnersetrecipients: + vstinner, bethard, larry, ned.deily, r.david.murray, serhiy.storchaka, xiang.zhang, cstratak
2016-10-11 14:35:03vstinnersetmessageid: <1476196503.7.0.125463754733.issue28409@psf.upfronthosting.co.za>
2016-10-11 14:35:03vstinnerlinkissue28409 messages
2016-10-11 14:35:03vstinnercreate