Home
last modified time | relevance | path

Searched refs:argparse (Results 1 – 25 of 1001) sorted by relevance

12345678910>>...41

/external/python/cpython3/Doc/library/
Dargparse.rst1 :mod:`argparse` --- Parser for command-line options, arguments and sub-commands
4 .. module:: argparse
12 **Source code:** :source:`Lib/argparse.py`
20 :ref:`argparse tutorial <argparse-tutorial>`.
22 The :mod:`argparse` module makes it easy to write user-friendly command-line
23 interfaces. The program defines what arguments it requires, and :mod:`argparse`
24 will figure out how to parse those out of :data:`sys.argv`. The :mod:`argparse`
35 import argparse
37 parser = argparse.ArgumentParser(description='Process some integers.')
89 The first step in using the :mod:`argparse` is creating an
[all …]
/external/python/cpython2/Doc/howto/
Dargparse.rst9 This tutorial is intended to be a gentle introduction to :mod:`argparse`, the
11 This was written for argparse in Python 3. A few details are different in 2.x,
19 Note also that :mod:`argparse` is based on :mod:`optparse`,
76 import argparse
77 parser = argparse.ArgumentParser()
102 * The second one starts to display the usefulness of the :mod:`argparse`
116 import argparse
117 parser = argparse.ArgumentParser()
151 * The variable is some form of 'magic' that :mod:`argparse` performs for free
161 import argparse
[all …]
/external/python/cpython3/Doc/howto/
Dargparse.rst9 This tutorial is intended to be a gentle introduction to :mod:`argparse`, the
17 Note also that :mod:`argparse` is based on :mod:`optparse`,
74 import argparse
75 parser = argparse.ArgumentParser()
100 * The second one starts to display the usefulness of the :mod:`argparse`
114 import argparse
115 parser = argparse.ArgumentParser()
149 * The variable is some form of 'magic' that :mod:`argparse` performs for free
159 import argparse
160 parser = argparse.ArgumentParser()
[all …]
/external/python/cpython2/Doc/library/
Dargparse.rst1 :mod:`argparse` --- Parser for command-line options, arguments and sub-commands
4 .. module:: argparse
11 **Source code:** :source:`Lib/argparse.py`
19 :ref:`argparse tutorial <argparse-tutorial>`.
21 The :mod:`argparse` module makes it easy to write user-friendly command-line
22 interfaces. The program defines what arguments it requires, and :mod:`argparse`
23 will figure out how to parse those out of :data:`sys.argv`. The :mod:`argparse`
34 import argparse
36 parser = argparse.ArgumentParser(description='Process some integers.')
88 The first step in using the :mod:`argparse` is creating an
[all …]
/external/skia/tools/
Dembed_resources.py10 import argparse
24 parser = argparse.ArgumentParser(
25 formatter_class=argparse.RawDescriptionHelpFormatter,
35 parser.add_argument('--input', required=True, type=argparse.FileType('rb'),
37 parser.add_argument('--output', required=True, type=argparse.FileType('w'),
/external/skqp/tools/
Dembed_resources.py10 import argparse
24 parser = argparse.ArgumentParser(
25 formatter_class=argparse.RawDescriptionHelpFormatter,
35 parser.add_argument('--input', required=True, type=argparse.FileType('rb'),
37 parser.add_argument('--output', required=True, type=argparse.FileType('w'),
/external/tensorflow/tensorflow/python/tools/
Dinspect_checkpoint.py20 import argparse
90 raise argparse.ArgumentTypeError("'%s' is not in the form k=v." % kv_str)
94 raise argparse.ArgumentTypeError("'%s' is not a valid printoption." % k)
97 raise argparse.ArgumentTypeError(
104 raise argparse.ArgumentTypeError(e.message)
122 parser = argparse.ArgumentParser()
/external/bcc/tools/
Dwakeuptime.py17 import argparse
27 raise argparse.ArgumentTypeError("must be an integer")
30 raise argparse.ArgumentTypeError("must be positive")
36 raise argparse.ArgumentTypeError("must be nonzero")
47 parser = argparse.ArgumentParser(
49 formatter_class=argparse.RawDescriptionHelpFormatter,
76 help=argparse.SUPPRESS)
Dtcpconnlat.py21 import argparse
29 raise argparse.ArgumentTypeError("must be a float")
32 raise argparse.ArgumentTypeError("must be positive")
43 parser = argparse.ArgumentParser(
45 formatter_class=argparse.RawDescriptionHelpFormatter,
57 help=argparse.SUPPRESS)
Ddcsnoop.py25 import argparse
35 parser = argparse.ArgumentParser(
37 formatter_class=argparse.RawDescriptionHelpFormatter,
42 help=argparse.SUPPRESS)
Dfilelife.py22 import argparse
31 parser = argparse.ArgumentParser(
33 formatter_class=argparse.RawDescriptionHelpFormatter,
38 help=argparse.SUPPRESS)
Doffcputime.py17 import argparse
26 raise argparse.ArgumentTypeError("must be an integer")
29 raise argparse.ArgumentTypeError("must be positive")
35 raise argparse.ArgumentTypeError("must be nonzero")
57 parser = argparse.ArgumentParser(
59 formatter_class=argparse.RawDescriptionHelpFormatter,
100 help=argparse.SUPPRESS)
Dttysnoop.py21 import argparse
37 parser = argparse.ArgumentParser(
39 formatter_class=argparse.RawDescriptionHelpFormatter,
46 help=argparse.SUPPRESS)
Dkillsnoop.py18 import argparse
28 parser = argparse.ArgumentParser(
30 formatter_class=argparse.RawDescriptionHelpFormatter,
37 help=argparse.SUPPRESS)
Dslabratetop.py22 import argparse
33 parser = argparse.ArgumentParser(
35 formatter_class=argparse.RawDescriptionHelpFormatter,
46 help=argparse.SUPPRESS)
Dgethostlatency.py21 import argparse
28 parser = argparse.ArgumentParser(
30 formatter_class=argparse.RawDescriptionHelpFormatter,
35 help=argparse.SUPPRESS)
Dsoftirqs.py18 import argparse
27 parser = argparse.ArgumentParser(
29 formatter_class=argparse.RawDescriptionHelpFormatter,
42 help=argparse.SUPPRESS)
Dprofile.py30 import argparse
46 raise argparse.ArgumentTypeError("must be an integer")
49 raise argparse.ArgumentTypeError("must be positive")
55 raise argparse.ArgumentTypeError("must be nonzero")
74 parser = argparse.ArgumentParser(
76 formatter_class=argparse.RawDescriptionHelpFormatter,
108 help=argparse.SUPPRESS)
/external/swiftshader/third_party/llvm-7.0/llvm/utils/
Dllvm-gisel-cov.py9 import argparse
18 raise argparse.ArgumentTypeError("'=' missing, expected name=value")
20 raise argparse.ArgumentTypeError("Expected name=value")
22 raise argparse.ArgumentTypeError("Expected name=value")
26 parser = argparse.ArgumentParser(description=__doc__)
/external/python/cpython3/Lib/test/
Dtest_argparse.py12 import argparse
115 class ErrorRaisingArgumentParser(argparse.ArgumentParser):
1313 Sig('foo', nargs='?', default=argparse.SUPPRESS),
1314 Sig('bar', nargs='*', default=argparse.SUPPRESS),
1315 Sig('--baz', action='store_true', default=argparse.SUPPRESS),
1331 parser_signature = Sig(argument_default=argparse.SUPPRESS)
1442 type = argparse.FileType('r')
1446 type = argparse.FileType('wb', 1)
1450 type = argparse.FileType('r', encoding='latin_1')
1454 type = argparse.FileType('w', encoding='big5', errors='ignore')
[all …]
/external/python/cpython2/Lib/test/
Dtest_argparse.py12 import argparse
129 class ErrorRaisingArgumentParser(argparse.ArgumentParser):
1294 Sig('foo', nargs='?', default=argparse.SUPPRESS),
1295 Sig('bar', nargs='*', default=argparse.SUPPRESS),
1296 Sig('--baz', action='store_true', default=argparse.SUPPRESS),
1312 parser_signature = Sig(argument_default=argparse.SUPPRESS)
1422 type = argparse.FileType('r')
1426 type = argparse.FileType('wb', 1)
1461 Sig('-x', type=argparse.FileType()),
1462 Sig('spam', type=argparse.FileType('r')),
[all …]
/external/python/cpython3/Lib/json/
Dtool.py13 import argparse
22 parser = argparse.ArgumentParser(prog=prog, description=description)
23 parser.add_argument('infile', nargs='?', type=argparse.FileType(),
25 parser.add_argument('outfile', nargs='?', type=argparse.FileType('w'),
/external/swiftshader/third_party/subzero/pydir/
Dif.py3 import argparse
17 argparser = argparse.ArgumentParser(
19 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
32 argparser.add_argument('--command', nargs=argparse.REMAINDER,
/external/minijail/tools/
Dcompile_seccomp_policy.py25 import argparse
36 parser = argparse.ArgumentParser(description=__doc__)
58 'policy', help='The seccomp policy.', type=argparse.FileType('r'))
60 'output', help='The BPF program.', type=argparse.FileType('wb'))
/external/tensorflow/tensorflow/python/debug/cli/
Dstepper_cli.py20 import argparse
93 ap = argparse.ArgumentParser(
96 usage=argparse.SUPPRESS)
114 ap = argparse.ArgumentParser(
115 description="Continue to a tensor or op.", usage=argparse.SUPPRESS)
139 ap = argparse.ArgumentParser(
142 usage=argparse.SUPPRESS)
153 ap = argparse.ArgumentParser(
156 usage=argparse.SUPPRESS)
181 ap = argparse.ArgumentParser(
[all …]

12345678910>>...41