Message306283
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 ? |
|
Date |
User |
Action |
Args |
2017-11-15 16:36:45 | stefan | set | recipients:
+ stefan |
2017-11-15 16:36:45 | stefan | set | messageid: <1510763805.17.0.213398074469.issue32036@psf.upfronthosting.co.za> |
2017-11-15 16:36:45 | stefan | link | issue32036 messages |
2017-11-15 16:36:45 | stefan | create | |
|