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, python-dev, r.david.murray, serhiy.storchaka, vstinner, xiang.zhang
Date 2016-10-17.19:04:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwbstdcfLVyzATHcaqfjD0prxTYfWB-x9qri0+eHmRpsgg@mail.gmail.com>
In-reply-to <1476728350.64.0.0887211449497.issue28409@psf.upfronthosting.co.za>
Content
Serhiy Storchaka added the comment:
> What is the difference between using parse_known_args() and
nargs=argparse.REMAINDER?

Using REMAINDER, args become ["b", "-c", "d"] for -a b -c d.

I would be happy to not use parse_known_args(), but I didn't find how.
History
Date User Action Args
2016-10-17 19:04:43vstinnersetrecipients: + vstinner, bethard, larry, ned.deily, r.david.murray, python-dev, serhiy.storchaka, xiang.zhang, cstratak
2016-10-17 19:04:42vstinnerlinkissue28409 messages
2016-10-17 19:04:42vstinnercreate