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 stefan
Recipients stefan
Date 2017-11-15.16:36:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510763805.17.0.213398074469.issue32036@psf.upfronthosting.co.za>
In-reply-to
Content
I'm trying to mix positional and non-positional arguments with a script using `argparse`, but I observe inconsistent behaviour.
The attached test runs fine when invoked with

test_argparse.py --info a a=b
test_argparse.py a a=b --info

but produces the error `error: unrecognized arguments: a=b` when invoked as

test_argparse.py a --info a=b

Is this intended behaviour ? If yes, is this documented ? If not, is there a way to make this work with existing `argparse` versions ?
History
Date User Action Args
2017-11-15 16:36:45stefansetrecipients: + stefan
2017-11-15 16:36:45stefansetmessageid: <1510763805.17.0.213398074469.issue32036@psf.upfronthosting.co.za>
2017-11-15 16:36:45stefanlinkissue32036 messages
2017-11-15 16:36:45stefancreate