[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-12-21 Thread Steven Bethard

Changes by Steven Bethard steven.beth...@gmail.com:


--
stage: needs patch - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-11-01 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Committed in r86092 (3.X) and r86093 (2.7). Thanks for the patches!

--
assignee:  - bethard
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-08-04 Thread Catherine Devlin

Catherine Devlin fredv8vi...@liquidid.net added the comment:

Unit test for Drake's patch

--
nosy: +catherine
Added file: http://bugs.python.org/file18392/test_mutually_exclusive.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-08-04 Thread Catherine Devlin

Catherine Devlin fredv8vi...@liquidid.net added the comment:

copy of Drake's argparse.diff - same patch, just has less specific diff header 
info (because ``patch -p0  argparse.diff`` failed on my machine)

--
Added file: http://bugs.python.org/file18393/mutually_exclusive_help.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-07-29 Thread Drake Dowsett

Drake Dowsett drake.dows...@gmail.com added the comment:

Problem is `inserts' dictionary is overwriting previous closing bracket, so 
checking for existing value and then appending if found.

--
keywords: +patch
nosy: +ddowsett
versions: +Python 2.6
Added file: http://bugs.python.org/file18260/argparse.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-07-23 Thread Steven Bethard

New submission from Steven Bethard steven.beth...@gmail.com:

[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.

--
components: Library (Lib)
messages: 111335
nosy: bethard
priority: normal
severity: normal
stage: needs patch
status: open
title: argparse add_mutually_exclusive_group more than once has incorrectly 
formatted help
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com