• Home
  • Raw
  • Download

Lines Matching refs:arg_strings

118         arg_strings = []
121 arg_strings.append(repr(arg))
124 arg_strings.append('%s=%r' % (name, value))
128 arg_strings.append('**%s' % repr(star_args))
129 return '%s(%s)' % (type_name, ', '.join(arg_strings))
1191 arg_strings = values[1:]
1213 subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
1217 if arg_strings:
1219 getattr(namespace, _UNRECOGNIZED_ARGS_ATTR).extend(arg_strings)
1870 def _parse_known_args(self, arg_strings, namespace): argument
1873 arg_strings = self._read_args_from_files(arg_strings)
1890 arg_strings_iter = iter(arg_strings)
1952 extras.append(arg_strings[start_index])
1999 args = arg_strings[start:stop]
2024 args = arg_strings[start_index: start_index + arg_count]
2062 strings = arg_strings[start_index:next_option_string_index]
2073 extras.extend(arg_strings[stop_index:])
2116 def _read_args_from_files(self, arg_strings): argument
2119 for arg_string in arg_strings:
2129 arg_strings = []
2132 arg_strings.append(arg)
2133 arg_strings = self._read_args_from_files(arg_strings)
2134 new_arg_strings.extend(arg_strings)
2419 def _get_values(self, action, arg_strings): argument
2423 arg_strings.remove('--')
2428 if not arg_strings and action.nargs == OPTIONAL:
2439 elif (not arg_strings and action.nargs == ZERO_OR_MORE and
2444 value = arg_strings
2448 elif len(arg_strings) == 1 and action.nargs in [None, OPTIONAL]:
2449 arg_string, = arg_strings
2455 value = [self._get_value(action, v) for v in arg_strings]
2459 value = [self._get_value(action, v) for v in arg_strings]
2468 value = [self._get_value(action, v) for v in arg_strings]