Author bethard
Recipients bethard, gotgenes
Date 2011-01-23.09:44:36
SpamBayes Score 0.00443727
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