![]() |
![]() |
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 | |
_option_string_actions | |
_registries |
Definition at line 1462 of file argparse.py.
def argparse::_ArgumentGroup::__init__ | ( | self, | |
container, | |||
title = None , |
|||
description = None , |
|||
kwargs | |||
) |
Reimplemented from argparse::_ActionsContainer.
Definition at line 1464 of file argparse.py.
01465 : 01466 # add any missing keyword arguments by checking the container 01467 update = kwargs.setdefault 01468 update('conflict_handler', container.conflict_handler) 01469 update('prefix_chars', container.prefix_chars) 01470 update('argument_default', container.argument_default) 01471 super_init = super(_ArgumentGroup, self).__init__ 01472 super_init(description=description, **kwargs) 01473 01474 # group attributes 01475 self.title = title 01476 self._group_actions = [] 01477 01478 # share most attributes with the container 01479 self._registries = container._registries 01480 self._actions = container._actions 01481 self._option_string_actions = container._option_string_actions 01482 self._defaults = container._defaults 01483 self._has_negative_number_optionals = \ 01484 container._has_negative_number_optionals
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 1485 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 1490 of file argparse.py.
argparse::_ArgumentGroup::_actions [private] |
Reimplemented from argparse::_ActionsContainer.
Definition at line 1464 of file argparse.py.
argparse::_ArgumentGroup::_defaults [private] |
Reimplemented from argparse::_ActionsContainer.
Definition at line 1464 of file argparse.py.
argparse::_ArgumentGroup::_group_actions [private] |
Definition at line 1464 of file argparse.py.
Reimplemented from argparse::_ActionsContainer.
Definition at line 1464 of file argparse.py.
Reimplemented from argparse::_ActionsContainer.
Definition at line 1464 of file argparse.py.
argparse::_ArgumentGroup::_registries [private] |
Reimplemented from argparse::_ActionsContainer.
Definition at line 1464 of file argparse.py.
Definition at line 1464 of file argparse.py.