zenlotus / argparse

Automatically exported from code.google.com/p/argparse
Other
0 stars 0 forks source link

Feature Request: Ability to remove argument groups #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There is a method ArgumentParser.add_argument_group() to create and add an
argument group to the parser.  I would like the ability to remove an
argument group via a method like remove_argument_group(group).

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.

Original issue reported on code.google.com by denver.c...@gmail.com on 7 Apr 2010 at 3:56

GoogleCodeExporter commented 9 years ago
Moved to http://bugs.python.org/issue9350

Original comment by steven.b...@gmail.com on 23 Jul 2010 at 1:54