summaryrefslogtreecommitdiffstats
path: root/Lib/argparse.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-30 12:19:35 (GMT)
committerGeorg Brandl <georg@python.org>2011-01-30 12:19:35 (GMT)
commit0f6b47a338fdc0063c651657fcbb6908da27f0b9 (patch)
treedd9fadce4192f09548ba1851fbd5381d6f2120e2 /Lib/argparse.py
parentd2f3857c40a340f252397eb16b4289403af8bf76 (diff)
downloadcpython-0f6b47a338fdc0063c651657fcbb6908da27f0b9.zip
cpython-0f6b47a338fdc0063c651657fcbb6908da27f0b9.tar.gz
cpython-0f6b47a338fdc0063c651657fcbb6908da27f0b9.tar.bz2
#10680: fix mutually exclusive arguments in argument groups.
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r--Lib/argparse.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py
index 5fd82da..de3cd11 100644
--- a/Lib/argparse.py
+++ b/Lib/argparse.py
@@ -1495,6 +1495,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)