CMS 3D CMS Logo

Public Member Functions | Public Attributes | Private Member Functions | Private Attributes

argparse::_MutuallyExclusiveGroup Class Reference

Inheritance diagram for argparse::_MutuallyExclusiveGroup:
argparse::_ArgumentGroup argparse::_ArgumentGroup argparse::_ActionsContainer argparse::_ActionsContainer argparse::_ActionsContainer argparse::_ActionsContainer

List of all members.

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

Detailed Description

Definition at line 1505 of file argparse.py.


Constructor & Destructor Documentation

def argparse::_MutuallyExclusiveGroup::__init__ (   self,
  container,
  required = False 
)

Definition at line 1507 of file argparse.py.

01508                                                  :
01509         super(_MutuallyExclusiveGroup, self).__init__(container)
01510         self.required = required
01511         self._container = container

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 

Member Function Documentation

def argparse::_MutuallyExclusiveGroup::_add_action (   self,
  action 
) [private]

Reimplemented from argparse::_ArgumentGroup.

Definition at line 1512 of file argparse.py.

01513                                  :
01514         if action.required:
01515             msg = _('mutually exclusive arguments must be optional')
01516             raise ValueError(msg)
01517         action = self._container._add_action(action)
01518         self._group_actions.append(action)
01519         return action

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.

01521                                     :
01522         self._container._remove_action(action)
01523         self._group_actions.remove(action)
01524 


Member Data Documentation

Definition at line 1507 of file argparse.py.

Definition at line 1507 of file argparse.py.