Home | History | Annotate | Download | only in python2.7

Lines Matching full:actions

30         the parser with actions for optional and positional arguments. Then
35 there are errors with the parser's actions. Errors raised while
43 - Action -- The base class for parser actions. Typically actions are
46 customization of ArgumentParser actions, subclasses of Action may
248 def add_usage(self, usage, actions, groups, prefix=None):
250 args = usage, actions, groups, prefix
271 def add_arguments(self, actions):
272 for action in actions:
290 def _format_usage(self, usage, actions, groups, prefix):
299 elif usage is None and not actions:
309 for action in actions:
382 def _format_actions_usage(self, actions, groups):
383 # find group indices and identify actions in groups
388 start = actions.index(group._group_actions[0])
393 if actions[start:end] == group._group_actions:
411 # collect all actions format strings
413 for i, action in enumerate(actions):
525 # if there are any sub-actions, add their help as well
817 raise ValueError('nargs for store actions must be > 0; if you '
818 'have nothing to store, actions such as store '
909 raise ValueError('nargs for append actions must be > 0; if arg '
1184 # register actions
1248 # Adding argument actions
1311 # add to actions list
1336 msg = _('cannot merge actions - two groups are named %r')
1352 # map the actions to their new group
1363 # map the actions to their new mutex group
1367 # add all actions to this container or their group
1781 # seen arguments, assuming that actions that use the default
1873 # function to convert arg_strings into positional actions
1939 # make sure all required actions were present, and convert defaults.
1964 # if no actions were used, report the error
2026 def _match_arguments_partial(self, actions, arg_strings_pattern):
2027 # progressively shorten the actions list by slicing off the
2028 # final actions until we find a match
2030 for i in range(len(actions), 0, -1):
2031 actions_slice = actions[:i]
2068 # and all actions in the parser for possible interpretations
2071 # if multiple actions match, the option string was ambiguous