diff options
author | Steven Bethard <steven.bethard@gmail.com> | 2011-01-30 14:05:38 +0000 |
---|---|---|
committer | Steven Bethard <steven.bethard@gmail.com> | 2011-01-30 14:05:38 +0000 |
commit | 7f41b88bb7b978205a438c7eea2b7f6bba6862d0 (patch) | |
tree | 0f4b9a22fbcc91aeb5e217e9f859b460d38d3fb0 /Lib/argparse.py | |
parent | 53c460d5fb3f2d5bdd001a7eaf621751faa87ff2 (diff) | |
download | cpython-git-7f41b88bb7b978205a438c7eea2b7f6bba6862d0.tar.gz |
#10680: fix mutually exclusive arguments in argument groups.
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r-- | Lib/argparse.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py index 75cc28a043..8e1722a2e3 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -1482,6 +1482,7 @@ class _ArgumentGroup(_ActionsContainer): self._defaults = container._defaults self._has_negative_number_optionals = \ container._has_negative_number_optionals + self._mutually_exclusive_groups = container._mutually_exclusive_groups def _add_action(self, action): action = super(_ArgumentGroup, self)._add_action(action) |