[issue25882] argparse help error: arguments created by add_mutually_exclusive_group() are shown outside their parent group created by add_argument_group()

2015-12-17 Thread Balázs Regényi
Balázs Regényi added the comment: Unfortunately the problem consists in case of normal sub-group too :(. If you complete my previous example code with the next code, then the problem can be seen: sub_group = global_group.add_argument_group() sub_group.add_argument("--sub

[issue25882] argparse help error: arguments created by add_mutually_exclusive_group() are shown outside their parent group created by add_argument_group()

2015-12-17 Thread Balázs Regényi
Balázs Regényi added the comment: paul.j3, thx the the patch, it is perfect!!! -- ___ Python tracker <http://bugs.python.org/issue25882> ___ ___ Python-bugs-list m

[issue25882] argparse help error: arguments created by add_mutually_exclusive_group() are shown outside their parent group created by add_argument_group()

2015-12-16 Thread Balázs Regényi
New submission from Balázs Regényi: So, a parent parser is created. It has a "global arguments" group (by add_argument_group()) and this group has a mutually exclusive group. Then a child parser is created used previous parser as parent. The error: in the child parser help: the ar