Lines Matching refs:container
826 - choices -- A container of values that should be allowed. If not None,
1486 action.container = self
1504 def _add_container_actions(self, container):
1515 for group in container._action_groups:
1518 # create a new group matching the container's group
1529 # add container's mutually exclusive groups
1532 for group in container._mutually_exclusive_groups:
1540 # add all actions to this container or their group
1541 for action in container._actions:
1640 # container holding it
1642 action.container._remove_action(action)
1647 def __init__(self, container, title=None, description=None, **kwargs):
1648 # add any missing keyword arguments by checking the container
1650 update('conflict_handler', container.conflict_handler)
1651 update('prefix_chars', container.prefix_chars)
1652 update('argument_default', container.argument_default)
1660 # share most attributes with the container
1661 self._registries = container._registries
1662 self._actions = container._actions
1663 self._option_string_actions = container._option_string_actions
1664 self._defaults = container._defaults
1666 container._has_negative_number_optionals
1667 self._mutually_exclusive_groups = container._mutually_exclusive_groups
1689 def __init__(self, container, required=False):
1690 super(_MutuallyExclusiveGroup, self).__init__(container)
1692 self._container = container