Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

> The use case for me is I create an argument group and 
> then conditionally add a bunch of arguments to it.  
> If zero arguments are added I would like to then remove
> the group so that an empty group does not show up 
> in the help output.

ISTM this use is likely rare enough that it doesn't warrant an API expansion.  
The argparse API is already somewhat large, so we should only expand it when 
there is a compelling benefit or the absence of a reasonable workaround (i.e. 
lazily adding a group only when the first argument is added).

----------
nosy: +rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue9350>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to