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 jakub
Recipients bethard, jakub
Date 2012-03-18.20:27:59
SpamBayes Score 6.17799e-05
Marked as misclassified No
Message-id <1332102480.28.0.401837291603.issue14365@psf.upfronthosting.co.za>
In-reply-to
Content
Assuming following:
1. optional argument, say "--foo", in a subparser;
2. at least two different optional arguments in the main parser prefixed with "--foo", say "--foo1" and "--foo2";

parsing fails with "error: ambiguous option: --foo could match --foo1, --foo2".

It seems like argument abbreviation mechanism described at http://docs.python.org/library/argparse.html#argument-abbreviations is not working properly when in use with subparsers...
History
Date User Action Args
2012-03-18 20:28:00jakubsetrecipients: + jakub, bethard
2012-03-18 20:28:00jakubsetmessageid: <1332102480.28.0.401837291603.issue14365@psf.upfronthosting.co.za>
2012-03-18 20:27:59jakublinkissue14365 messages
2012-03-18 20:27:59jakubcreate