CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
argparse._MutuallyExclusiveGroup Class Reference
Inheritance diagram for argparse._MutuallyExclusiveGroup:
argparse._ArgumentGroup argparse._ActionsContainer

Public Member Functions

def __init__ (self, container, required=False)
 
- Public Member Functions inherited from argparse._ArgumentGroup
def __init__ (self, container, title=None, description=None, kwargs)
 
- Public Member Functions inherited from argparse._ActionsContainer
def __init__ (self, description, prefix_chars, argument_default, conflict_handler)
 
def add_argument (self, args, kwargs)
 
def add_argument_group (self, args, kwargs)
 
def add_mutually_exclusive_group (self, kwargs)
 
def register (self, registry_name, value, object)
 
def set_defaults (self, kwargs)
 

Public Attributes

 required
 
- Public Attributes inherited from argparse._ArgumentGroup
 title
 
- Public Attributes inherited from argparse._ActionsContainer
 argument_default
 
 conflict_handler
 
 description
 
 prefix_chars
 

Private Member Functions

def _add_action (self, action)
 
def _remove_action (self, action)
 

Private Attributes

 _container
 

Detailed Description

Definition at line 1483 of file argparse.py.

Constructor & Destructor Documentation

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

Definition at line 1485 of file argparse.py.

1485  def __init__(self, container, required=False):
1486  super(_MutuallyExclusiveGroup, self).__init__(container)
1487  self.required = required
1488  self._container = container
1489 
def __init__(self, container, required=False)
Definition: argparse.py:1485

Member Function Documentation

def argparse._MutuallyExclusiveGroup._add_action (   self,
  action 
)
private

Definition at line 1490 of file argparse.py.

References crabWrapper._.

1490  def _add_action(self, action):
1491  if action.required:
1492  msg = _('mutually exclusive arguments must be optional')
1493  raise ValueError(msg)
1494  action = self._container._add_action(action)
1495  self._group_actions.append(action)
1496  return action
1497 
def _add_action(self, action)
Definition: argparse.py:1490
def argparse._MutuallyExclusiveGroup._remove_action (   self,
  action 
)
private

Definition at line 1498 of file argparse.py.

1498  def _remove_action(self, action):
1499  self._container._remove_action(action)
1500  self._group_actions.remove(action)
1501 
1502 
def _remove_action(self, action)
Definition: argparse.py:1498

Member Data Documentation

argparse._MutuallyExclusiveGroup._container
private

Definition at line 1488 of file argparse.py.

argparse._MutuallyExclusiveGroup.required

Definition at line 1487 of file argparse.py.