Home
last modified time | relevance | path

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

12345678910>>...27

/third_party/python/Lib/test/
Dtest_argparse.py11 import argparse
115 class ErrorRaisingArgumentParser(argparse.ArgumentParser):
693 argument_signatures = [Sig('--foo', action=argparse.BooleanOptionalAction)]
705 parser = argparse.ArgumentParser()
707 parser.add_argument('--foo', const=True, action=argparse.BooleanOptionalAction)
715 Sig('--foo', required=True, action=argparse.BooleanOptionalAction)
1401 Sig('foo', nargs='?', default=argparse.SUPPRESS),
1402 Sig('bar', nargs='*', default=argparse.SUPPRESS),
1403 Sig('--baz', action='store_true', default=argparse.SUPPRESS),
1419 parser_signature = Sig(argument_default=argparse.SUPPRESS)
[all …]
/third_party/python/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 …]
/third_party/python/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 …]
/third_party/mesa3d/bin/
Dcommit_in_branch.py3 import argparse
8 def print_(args: argparse.Namespace, success: bool, message: str) -> None:
78 raise argparse.ArgumentTypeError('invalid commit identifier: ' + commit)
87 raise argparse.ArgumentTypeError('must be in the form `remote/branch`')
99 raise argparse.ArgumentTypeError('Invalid remote: ' + upstream)
102 raise argparse.ArgumentTypeError('Invalid branch: ' + branch)
108 parser = argparse.ArgumentParser(description="""
Dgen_calendar_entries_test.py26 import argparse
173 args: gen_calendar_entries.RCArguments = argparse.Namespace()
196 args: gen_calendar_entries.ExtendArguments = argparse.Namespace()
222 args: gen_calendar_entries.ExtendArguments = argparse.Namespace()
248 args: gen_calendar_entries.ExtendArguments = argparse.Namespace()
289 args: gen_calendar_entries.FinalArguments = argparse.Namespace()
305 args: gen_calendar_entries.FinalArguments = argparse.Namespace()
Dmeson-cmd-extract.py28 import argparse
35 def parse_args() -> argparse.Namespace:
37 parser = argparse.ArgumentParser()
Dcommit_in_branch_test.py1 import argparse
40 except argparse.ArgumentTypeError:
64 except argparse.ArgumentTypeError:
/third_party/flutter/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'),
/third_party/skia/tools/
Dembed_resources.py10 import argparse
29 parser = argparse.ArgumentParser(
30 formatter_class=argparse.RawDescriptionHelpFormatter,
40 parser.add_argument('--input', required=True, type=argparse.FileType('rb'),
42 parser.add_argument('--output', required=True, type=argparse.FileType('w'),
/third_party/python/Tools/peg_generator/pegen/
Dkeywordgen.py3 import argparse
42 parser = argparse.ArgumentParser(
49 "tokens_file", type=argparse.FileType("r"), help="The file with the token definitions"
53 type=argparse.FileType("w"),
D__main__.py8 import argparse
21 args: argparse.Namespace,
50 args: argparse.Namespace,
74 argparser = argparse.ArgumentParser(
/third_party/mbedtls/tests/scripts/
Dlist_internal_identifiers.py31 import argparse
36 parser = argparse.ArgumentParser(
37 formatter_class=argparse.RawDescriptionHelpFormatter,
/third_party/benchmark/tools/
Dcompare.py8 import argparse
9 from argparse import ArgumentParser
94 type=argparse.FileType('r'),
102 type=argparse.FileType('r'),
108 nargs=argparse.REMAINDER,
118 type=argparse.FileType('r'),
138 nargs=argparse.REMAINDER,
149 type=argparse.FileType('r'),
163 type=argparse.FileType('r'),
175 nargs=argparse.REMAINDER,
/third_party/flutter/skia/third_party/externals/sfntly/cpp/tools/
Dclean_fonts_repo.py23 import argparse
29 parser = argparse.ArgumentParser(description="""Remove all files from the
32 argparse.ArgumentDefaultsHelpFormatter)
Dgenerate_font_data_xml.py19 import argparse
28 parser = argparse.ArgumentParser(description='Generates font test data.',
30 argparse.ArgumentDefaultsHelpFormatter)
/third_party/skia/third_party/externals/sfntly/cpp/tools/
Dclean_fonts_repo.py23 import argparse
29 parser = argparse.ArgumentParser(description="""Remove all files from the
32 argparse.ArgumentDefaultsHelpFormatter)
Dgenerate_font_data_xml.py19 import argparse
28 parser = argparse.ArgumentParser(description='Generates font test data.',
30 argparse.ArgumentDefaultsHelpFormatter)
/third_party/gn/examples/ios/build/config/ios/scripts/
Dgenerate_umbrella_header.py10 import argparse
27 parser = argparse.ArgumentParser(
29 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
Dcompile_storyboard.py9 import argparse
27 parser = argparse.ArgumentParser(
29 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
Dfind_app_identifier_prefix.py10 import argparse
91 parser = argparse.ArgumentParser(
93 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
/third_party/python/Lib/unittest/
Dmain.py4 import argparse
167 parser = argparse.ArgumentParser(add_help=False)
202 parser = argparse.ArgumentParser(parents=[parent])
213 parser = argparse.ArgumentParser(parents=[parent])
228 default=argparse.SUPPRESS,
229 help=argparse.SUPPRESS)
/third_party/python/Lib/test/libregrtest/
Dcmdline.py1 import argparse
144 class Namespace(argparse.Namespace):
176 class _ArgParser(argparse.ArgumentParser):
190 formatter_class=argparse.RawDescriptionHelpFormatter)
334 raise argparse.ArgumentTypeError(
350 raise argparse.ArgumentTypeError('invalid resource: ' + r)
/third_party/skia/third_party/externals/expat/expat/xmlwf/
Dxmlwf_helpgen.py32 import argparse
52 parser = argparse.ArgumentParser(prog='xmlwf', add_help=False,
55 formatter_class=argparse.RawTextHelpFormatter,
/third_party/nghttp2/doc/
Dmkapiref.py30 import re, sys, argparse, os.path
314 parser = argparse.ArgumentParser(description="Generate API reference")
317 parser.add_argument('index', type=argparse.FileType('w'),
319 parser.add_argument('macros', type=argparse.FileType('w'),
321 parser.add_argument('enums', type=argparse.FileType('w'),
323 parser.add_argument('types', type=argparse.FileType('w'),
327 parser.add_argument('files', nargs='+', type=argparse.FileType('r'),
/third_party/python/Lib/json/
Dtool.py13 import argparse
23 parser = argparse.ArgumentParser(prog=prog, description=description)
25 type=argparse.FileType(encoding="utf-8"),

12345678910>>...27