Message408427
According to the documentation only the ArgumentParser has add_argument_group option, which is not true, the code allows me to add a subgroup to any group. The complete example is in issue 4608: https://bugs.python.org/issue46058
If add_argument_group shouldn't be used for a regular argument group,
I suggest the following change: _ActionsContainer.add_argument_group should return self if title is not specified and raise error if add_argument_group("...") is called on a group with title.
This is close to the originally intended, documented behaviour.
I'd still allow groups without title in mutually exclusive groups and vice versa. |
|
Date |
User |
Action |
Args |
2021-12-13 06:48:31 | Laszlo.Attila.Toth | set | recipients:
+ Laszlo.Attila.Toth, iritkatriel |
2021-12-13 06:48:31 | Laszlo.Attila.Toth | set | messageid: <1639378111.1.0.107134874113.issue46057@roundup.psfhosted.org> |
2021-12-13 06:48:31 | Laszlo.Attila.Toth | link | issue46057 messages |
2021-12-13 06:48:30 | Laszlo.Attila.Toth | create | |
|