Mercurial > cpython-lru_cache-weakref
diff Lib/argparse.py @ 67824:e82501812ae3 2.7
#10680: fix mutually exclusive arguments in argument groups.
| author | Steven Bethard <steven.bethard@gmail.com> |
|---|---|
| date | Sun, 30 Jan 2011 14:05:38 +0000 |
| parents | 7f9a98f766d7 |
| children | 4bb651eb7539 |
line wrap: on
line diff
--- a/Lib/argparse.py Sun Jan 30 01:43:40 2011 +0000 +++ b/Lib/argparse.py Sun Jan 30 14:05:38 2011 +0000 @@ -1482,6 +1482,7 @@ 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)
