Home
last modified time | relevance | path

Searched refs:parse_args (Results 1 – 25 of 1231) sorted by relevance

12345678910>>...50

/external/autotest/site_utils/deployment/
Dcmdparse_unittest.py38 parser.parse_args(['--option', '--nooption'])
40 parser.parse_args(['--nooption', '--option'])
51 parser.parse_args(['--option', '--nooption'])
53 parser.parse_args(['--nooption', '--option'])
58 arguments = parser.parse_args([])
64 arguments = parser.parse_args([])
70 arguments = parser.parse_args(['--option'])
76 arguments = parser.parse_args(['--option'])
82 arguments = parser.parse_args(['--nooption'])
88 arguments = parser.parse_args(['--nooption'])
/external/python/cpython3/Doc/library/
Dargparse.rst44 args = parser.parse_args()
105 used when :meth:`~ArgumentParser.parse_args` is called. For example::
113 Later, calling :meth:`~ArgumentParser.parse_args` will return an object with
124 :meth:`~ArgumentParser.parse_args` method. This will inspect the command line,
129 >>> parser.parse_args(['--sum', '7', '-1', '42'])
132 In a script, :meth:`~ArgumentParser.parse_args` will typically be called with no
200 args = parser.parse_args()
347 >>> foo_parser.parse_args(['--parent', '2', 'XXX'])
352 >>> bar_parser.parse_args(['--bar', 'YYY'])
483 >>> parser.parse_args('+f X ++bar Y'.split())
[all …]
/external/python/cpython3/Lib/test/
Dtest_argparse.py83 def stderr_to_parser_error(parse_args, *args, **kwargs): argument
88 return parse_args(*args, **kwargs)
98 result = parse_args(*args, **kwargs)
117 def parse_args(self, *args, **kwargs): member in ErrorRaisingArgumentParser
118 parse_args = super(ErrorRaisingArgumentParser, self).parse_args
119 return stderr_to_parser_error(parse_args, *args, **kwargs)
181 return parser.parse_args(args)
188 return parser.parse_args()
196 def __init__(self, tester_cls, add_arguments, parse_args): argument
198 self._parse_args = parse_args
[all …]
/external/python/cpython2/Doc/library/
Dargparse.rst43 args = parser.parse_args()
104 used when :meth:`~ArgumentParser.parse_args` is called. For example::
112 Later, calling :meth:`~ArgumentParser.parse_args` will return an object with
123 :meth:`~ArgumentParser.parse_args` method. This will inspect the command line,
128 >>> parser.parse_args(['--sum', '7', '-1', '42'])
131 In a script, :meth:`~ArgumentParser.parse_args` will typically be called with no
193 args = parser.parse_args()
340 >>> foo_parser.parse_args(['--parent', '2', 'XXX'])
345 >>> bar_parser.parse_args(['--bar', 'YYY'])
457 >>> parser.parse_args('+f X ++bar Y'.split())
[all …]
/external/python/cpython2/Lib/test/
Dtest_argparse.py97 def stderr_to_parser_error(parse_args, *args, **kwargs): argument
102 return parse_args(*args, **kwargs)
112 result = parse_args(*args, **kwargs)
131 def parse_args(self, *args, **kwargs): member in ErrorRaisingArgumentParser
132 parse_args = super(ErrorRaisingArgumentParser, self).parse_args
133 return stderr_to_parser_error(parse_args, *args, **kwargs)
195 return parser.parse_args(args)
202 return parser.parse_args()
210 def __init__(self, tester_cls, add_arguments, parse_args): argument
212 self._parse_args = parse_args
[all …]
/external/tensorflow/tensorflow/python/tools/
Dsaved_model_cli_test.py56 args = self.parser.parse_args(['show', '--dir', base_path, '--all'])
148 args = self.parser.parse_args(['show', '--dir', base_path])
159 args = self.parser.parse_args(
180 args = self.parser.parse_args(
188 args = self.parser.parse_args([
350 args = self.parser.parse_args([
371 args = self.parser.parse_args([
393 args = self.parser.parse_args([
413 args = self.parser.parse_args([
426 args = self.parser.parse_args([
[all …]
/external/google-benchmark/tools/
Dcompare.py260 parsed = self.parser.parse_args(
270 parsed = self.parser.parse_args(
281 parsed = self.parser.parse_args(
291 parsed = self.parser.parse_args(
302 parsed = self.parser.parse_args(
313 parsed = self.parser.parse_args(
323 parsed = self.parser.parse_args(
333 parsed = self.parser.parse_args(
344 parsed = self.parser.parse_args(
355 parsed = self.parser.parse_args(
[all …]
/external/libcxx/utils/google-benchmark/tools/
Dcompare.py260 parsed = self.parser.parse_args(
270 parsed = self.parser.parse_args(
281 parsed = self.parser.parse_args(
291 parsed = self.parser.parse_args(
302 parsed = self.parser.parse_args(
313 parsed = self.parser.parse_args(
323 parsed = self.parser.parse_args(
333 parsed = self.parser.parse_args(
344 parsed = self.parser.parse_args(
355 parsed = self.parser.parse_args(
[all …]
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dparser.ml27 let rec parse_args accumulator = parser function
30 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
38 args=parse_args [];
93 let rec parse_args accumulator = parser
94 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
101 args=parse_args [];
/external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter3/
Dparser.ml27 let rec parse_args accumulator = parser function
30 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
38 args=parse_args [];
93 let rec parse_args accumulator = parser
94 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
101 args=parse_args [];
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter2/
Dparser.ml27 let rec parse_args accumulator = parser function
30 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
38 args=parse_args [];
93 let rec parse_args accumulator = parser
94 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
101 args=parse_args [];
/external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter4/
Dparser.ml27 let rec parse_args accumulator = parser function
30 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
38 args=parse_args [];
93 let rec parse_args accumulator = parser
94 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
101 args=parse_args [];
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter3/
Dparser.ml27 let rec parse_args accumulator = parser function
30 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
38 args=parse_args [];
93 let rec parse_args accumulator = parser
94 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
101 args=parse_args [];
/external/llvm/examples/OCaml-Kaleidoscope/Chapter2/
Dparser.ml27 let rec parse_args accumulator = parser function
30 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
38 args=parse_args [];
93 let rec parse_args accumulator = parser
94 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
101 args=parse_args [];
/external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter2/
Dparser.ml27 let rec parse_args accumulator = parser function
30 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
38 args=parse_args [];
93 let rec parse_args accumulator = parser
94 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
101 args=parse_args [];
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dparser.ml27 let rec parse_args accumulator = parser function
30 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
38 args=parse_args [];
93 let rec parse_args accumulator = parser
94 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
101 args=parse_args [];
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/
Dparser.ml27 let rec parse_args accumulator = parser function
30 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
38 args=parse_args [];
93 let rec parse_args accumulator = parser
94 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
101 args=parse_args [];
/external/autotest/contrib/
Ddb_optimize.py52 def parse_args(): function
57 return parser.parse_args()
62 args = parse_args()
Dstage_build.py15 def parse_args(): function
23 args = parser.parse_args()
32 options = parse_args()
/external/mesa3d/src/compiler/spirv/
Dspirv_info_c.py57 def parse_args(): function
61 return p.parse_args()
86 pargs = parse_args()
/external/autotest/site_utils/
Dabort_suite.py41 def parse_args(): function
51 return parser.parse_args()
80 args = parse_args()
/external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter6/
Dparser.ml29 let rec parse_args accumulator = parser function
32 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
40 args=parse_args [];
142 let rec parse_args accumulator = parser
143 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
157 args=parse_args [];
166 args=parse_args [];
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dparser.ml29 let rec parse_args accumulator = parser function
32 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
40 args=parse_args [];
142 let rec parse_args accumulator = parser
143 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
157 args=parse_args [];
166 args=parse_args [];
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dparser.ml29 let rec parse_args accumulator = parser function
32 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e
40 args=parse_args [];
142 let rec parse_args accumulator = parser
143 | [< 'Token.Ident id; e=parse_args (id::accumulator) >] -> e
157 args=parse_args [];
166 args=parse_args [];
/external/skqp/tools/skqp/
Dgenerate_gn_args20 def parse_args(): function
34 args = parser.parse_args()
56 args = parse_args()

12345678910>>...50