[issue28220] argparse's add_mutually_exclusive_group() should accept title and description

2016-09-20 Thread Berker Peksag

Berker Peksag added the comment:

Unless I'm missing something, this is a duplicate of issue 17218 :)

--
nosy: +berker.peksag
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> support title and description in argparse 
add_mutually_exclusive_group

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28220] argparse's add_mutually_exclusive_group() should accept title and description

2016-09-20 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

The workaround is to do something like:

group = parser.add_argument_group(title, description)
me_group = group.add_mutually_exclusive_group()
me_group.add_argument(...blah blah blah...)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28220] argparse's add_mutually_exclusive_group() should accept title and description

2016-09-20 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Hmm, it might be more complicated than that, so let's ignore 3.6

--
versions:  -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28220] argparse's add_mutually_exclusive_group() should accept title and description

2016-09-20 Thread Barry A. Warsaw

New submission from Barry A. Warsaw:

I'd love to sneak this into 3.6, but I can accept being too late.  In any case, 
_MutuallyExclusiveGroup.__init__() should accept title and description 
arguments and pass them to the super class.  Otherwise, you can't great a 
mutually exclusive group that also essentially acts as an argument group.

--
components: Library (Lib)
messages: 277067
nosy: barry
priority: normal
severity: normal
status: open
title: argparse's add_mutually_exclusive_group() should accept title and 
description
versions: Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com