paul j3 added the comment:
I'm proposing closing this with reference to http://bugs.python.org/issue22047
That focuses on the issue of adding mutually exclusive group to another
exclusive group, but adding Argument Group has the same problems.
Solutions, short of the big http://bugs.python.or
Alexandre Badez added the comment:
@paul: thanks, I'm very surprised because the parsing work well.
It's just the display that do not.
Moreover it's not said in the documentation that you cannot nest groups.
So maybe we should update the documentation and/or improve the module ?
--
__
paul j3 added the comment:
These two types of groups serve different purposes and aren't designed to nest
or interact.
An argument group groups arguments in the help lines. It does not affect
parsing at all. It can't be used to add a 'group' of arguments to another
group.
A mutually exclus
New submission from Alexandre Badez:
Hi,
Here is a sample of what I do:
>>> import argparse
>>> main_parser = argparse.ArgumentParser()
>>> group_ex = main_parser.add_mutually_exclusive_group()
>>> group_ex1 = group_ex.add_argument_group()
>>> group_ex1.add_argument('-a', '--atest', help="help