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
Date 2010-07-23.14:35:22
SpamBayes Score 0.02853888
Marked as misclassified No
Message-id <1279895728.08.0.860550350605.issue9355@psf.upfronthosting.co.za>
In-reply-to
Content
[Moved from http://code.google.com/p/argparse/issues/detail?id=78]

What steps will reproduce the problem?
1. Create two mutually exclusive groups: eg

agroup = subcmd_parser.add_mutually_exclusive_group()
agroup.add_argument('--a1', action='store_true', help='blah')
agroup.add_argument('--a2', action='store_true', help='blah')
agroup.add_argument('--a3', action='store_true', help='blah')

bgroup = subcmd_parser.add_mutually_exclusive_group()
bgroup.add_argument('--b1', action='store_true', help='blah')
bgroup.add_argument('--b2', action='store_true', help='blah')
bgroup.add_argument('--b3', action='store_true', help='blah')

What is the expected output? What do you see instead?

Expected output (on running a help command which formats help) is:
[ --a1 | --a2 | --a3 ] [ --b1 | --b2 | --b3 ]

You see instead:
[ --a1 | --a2 | --a3 [ --b1 | --b2 | --b3 ]

Note that the closing brace for the first group is missing.
History
Date User Action Args
2010-07-23 14:35:28bethardsetrecipients: + bethard
2010-07-23 14:35:28bethardsetmessageid: <1279895728.08.0.860550350605.issue9355@psf.upfronthosting.co.za>
2010-07-23 14:35:22bethardlinkissue9355 messages
2010-07-23 14:35:22bethardcreate