[issue38590] argparse unexpected behavior with argument group inside mutually exclusive group

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Nesting argument groups and mutually exclusive groups is now deprecated (see issue22047). Thank you for the bug report. -- nosy: +iritkatriel resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Deprecate unsupported

[issue38590] argparse unexpected behavior with argument group inside mutually exclusive group

2019-11-04 Thread paul j3
paul j3 added the comment: With one exception, groups are not designed or intended to be nested. But by inheritance (from _ActionsContainer) nesting isn't blocked nor does it raise any errors. As you surmise, an ArgumentGroup, is used only for grouping the help lines. By default that are

[issue38590] argparse unexpected behavior with argument group inside mutually exclusive group

2019-10-25 Thread Tim Sanders
New submission from Tim Sanders : argparse allows adding argument_groups inside of mutually_exclusive_groups, but the behavior is unintuitive and a bit buggy. Demo: import argparse parser = argparse.ArgumentParser() single_group = parser.add_argument_group(title='single_group')