Public Member Functions | |
def | __init__ |
def | __init__ |
Public Attributes | |
required | |
Private Member Functions | |
def | _add_action |
def | _add_action |
def | _remove_action |
def | _remove_action |
Private Attributes | |
_container |
Definition at line 1505 of file argparse.py.
def argparse::_MutuallyExclusiveGroup::__init__ | ( | self, | |
container, | |||
required = False |
|||
) |
Definition at line 1507 of file argparse.py.
def argparse::_MutuallyExclusiveGroup::__init__ | ( | self, | |
container, | |||
required = False |
|||
) |
Definition at line 1485 of file argparse.py.
01485 : 01486 super(_MutuallyExclusiveGroup, self).__init__(container) 01487 self.required = required 01488 self._container = container 01489
def argparse::_MutuallyExclusiveGroup::_add_action | ( | self, | |
action | |||
) | [private] |
Reimplemented from argparse::_ArgumentGroup.
Definition at line 1512 of file argparse.py.
def argparse::_MutuallyExclusiveGroup::_add_action | ( | self, | |
action | |||
) | [private] |
Reimplemented from argparse::_ArgumentGroup.
Definition at line 1490 of file argparse.py.
01490 : 01491 if action.required: 01492 msg = _('mutually exclusive arguments must be optional') 01493 raise ValueError(msg) 01494 action = self._container._add_action(action) 01495 self._group_actions.append(action) 01496 return action 01497
def argparse::_MutuallyExclusiveGroup::_remove_action | ( | self, | |
action | |||
) | [private] |
Reimplemented from argparse::_ArgumentGroup.
Definition at line 1498 of file argparse.py.
01498 : 01499 self._container._remove_action(action) 01500 self._group_actions.remove(action) 01501 01502
def argparse::_MutuallyExclusiveGroup::_remove_action | ( | self, | |
action | |||
) | [private] |
Reimplemented from argparse::_ArgumentGroup.
Definition at line 1520 of file argparse.py.
Definition at line 1507 of file argparse.py.
Definition at line 1507 of file argparse.py.