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 bethard
Recipients bethard, gotgenes
Date 2011-01-23.09:44:36
SpamBayes Score 0.0044372682
Marked as misclassified No
Message-id <1295775881.74.0.425181231893.issue10984@psf.upfronthosting.co.za>
In-reply-to
Content
I'm definitely open to providing such functionality. I assume you're imagining something like:

parser = argparse.ArgumentParser()
a_action = parser.add_argument('-a')
b_action = parser.add_argument('-b')
c_action = parser.add_argument('-c')
d_action = parser.add_argument('-d')
parser.add_mutually_exclusive_group(a_action, c_action)
parser.add_mutually_exclusive_group(a_action, d_action)
...

If you can supply a patch, I'll take a look at it.
History
Date User Action Args
2011-01-23 09:44:41bethardsetrecipients: + bethard, gotgenes
2011-01-23 09:44:41bethardsetmessageid: <1295775881.74.0.425181231893.issue10984@psf.upfronthosting.co.za>
2011-01-23 09:44:36bethardlinkissue10984 messages
2011-01-23 09:44:36bethardcreate