Public Member Functions | |
def | __init__ |
def | __init__ |
Public Attributes | |
title | |
Private Member Functions | |
def | _add_action |
def | _add_action |
def | _remove_action |
def | _remove_action |
Private Attributes | |
_actions | |
_defaults | |
_group_actions | |
_has_negative_number_optionals | |
_mutually_exclusive_groups | |
_option_string_actions | |
_registries |
Definition at line 1471 of file argparse.py.
def argparse::_ArgumentGroup::__init__ | ( | self, | |
container, | |||
title = None , |
|||
description = None , |
|||
kwargs | |||
) |
Reimplemented from argparse::_ActionsContainer.
Definition at line 1473 of file argparse.py.
01474 : 01475 # add any missing keyword arguments by checking the container 01476 update = kwargs.setdefault 01477 update('conflict_handler', container.conflict_handler) 01478 update('prefix_chars', container.prefix_chars) 01479 update('argument_default', container.argument_default) 01480 super_init = super(_ArgumentGroup, self).__init__ 01481 super_init(description=description, **kwargs) 01482 01483 # group attributes 01484 self.title = title 01485 self._group_actions = [] 01486 01487 # share most attributes with the container 01488 self._registries = container._registries 01489 self._actions = container._actions 01490 self._option_string_actions = container._option_string_actions 01491 self._defaults = container._defaults 01492 self._has_negative_number_optionals = \ 01493 container._has_negative_number_optionals 01494 self._mutually_exclusive_groups = container._mutually_exclusive_groups
def argparse::_ArgumentGroup::__init__ | ( | self, | |
container, | |||
title = None , |
|||
description = None , |
|||
kwargs | |||
) |
Reimplemented from argparse::_ActionsContainer.
Definition at line 1452 of file argparse.py.
01452 : 01453 # add any missing keyword arguments by checking the container 01454 update = kwargs.setdefault 01455 update('conflict_handler', container.conflict_handler) 01456 update('prefix_chars', container.prefix_chars) 01457 update('argument_default', container.argument_default) 01458 super_init = super(_ArgumentGroup, self).__init__ 01459 super_init(description=description, **kwargs) 01460 01461 # group attributes 01462 self.title = title 01463 self._group_actions = [] 01464 01465 # share most attributes with the container 01466 self._registries = container._registries 01467 self._actions = container._actions 01468 self._option_string_actions = container._option_string_actions 01469 self._defaults = container._defaults 01470 self._has_negative_number_optionals = \ 01471 container._has_negative_number_optionals 01472
def argparse::_ArgumentGroup::_add_action | ( | self, | |
action | |||
) | [private] |
Reimplemented from argparse::_ActionsContainer.
Reimplemented in argparse::_MutuallyExclusiveGroup, and argparse::_MutuallyExclusiveGroup.
Definition at line 1495 of file argparse.py.
def argparse::_ArgumentGroup::_add_action | ( | self, | |
action | |||
) | [private] |
Reimplemented from argparse::_ActionsContainer.
Reimplemented in argparse::_MutuallyExclusiveGroup, and argparse::_MutuallyExclusiveGroup.
Definition at line 1473 of file argparse.py.
01473 : 01474 action = super(_ArgumentGroup, self)._add_action(action) 01475 self._group_actions.append(action) 01476 return action 01477
def argparse::_ArgumentGroup::_remove_action | ( | self, | |
action | |||
) | [private] |
Reimplemented from argparse::_ActionsContainer.
Reimplemented in argparse::_MutuallyExclusiveGroup, and argparse::_MutuallyExclusiveGroup.
Definition at line 1478 of file argparse.py.
01478 : 01479 super(_ArgumentGroup, self)._remove_action(action) 01480 self._group_actions.remove(action) 01481 01482
def argparse::_ArgumentGroup::_remove_action | ( | self, | |
action | |||
) | [private] |
Reimplemented from argparse::_ActionsContainer.
Reimplemented in argparse::_MutuallyExclusiveGroup, and argparse::_MutuallyExclusiveGroup.
Definition at line 1500 of file argparse.py.
argparse::_ArgumentGroup::_actions [private] |
Reimplemented from argparse::_ActionsContainer.
Definition at line 1473 of file argparse.py.
argparse::_ArgumentGroup::_defaults [private] |
Reimplemented from argparse::_ActionsContainer.
Definition at line 1473 of file argparse.py.
argparse::_ArgumentGroup::_group_actions [private] |
Definition at line 1473 of file argparse.py.
Reimplemented from argparse::_ActionsContainer.
Definition at line 1473 of file argparse.py.
Reimplemented from argparse::_ActionsContainer.
Definition at line 1473 of file argparse.py.
Reimplemented from argparse::_ActionsContainer.
Definition at line 1473 of file argparse.py.
argparse::_ArgumentGroup::_registries [private] |
Reimplemented from argparse::_ActionsContainer.
Definition at line 1473 of file argparse.py.
Definition at line 1473 of file argparse.py.