| /external/python/absl-py/absl/flags/ |
| D | argparse_flags.py | 15 """This module provides argparse integration with absl.flags. 18 :class:`argparse.ArgumentParser`. It takes care of collecting and defining absl 19 flags in :mod:`argparse`. 29 description='A demo of absl.flags and argparse integration.') 34 # argparse flag. The absl flag `--echo` continues to be available via 76 argparse parser. Notably: 93 import argparse 109 class ArgumentParser(argparse.ArgumentParser): 116 **kwargs: same as argparse.ArgumentParser, except: 133 # Now call super to initialize argparse.ArgumentParser before calling [all …]
|
| /external/python/cpython3/Doc/howto/ |
| D | argparse.rst | 4 Argparse Tutorial 9 .. currentmodule:: argparse 11 This tutorial is intended to be a gentle introduction to :mod:`argparse`, the 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 [all …]
|
| /external/python/cpython2/Doc/howto/ |
| D | argparse.rst | 2 Argparse Tutorial 9 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 [all …]
|
| /external/python/cpython3/Doc/library/ |
| D | argparse.rst | 1 :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` 32 The :mod:`argparse` module's support for command-line interfaces is built 33 around an instance of :class:`argparse.ArgumentParser`. It is a container for 36 parser = argparse.ArgumentParser( [all …]
|
| /external/python/cpython2/Doc/library/ |
| D | argparse.rst | 1 :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/cronet/testing/merge_scripts/ |
| D | merge_api.py | 5 import argparse 13 parser = argparse.ArgumentParser(*args, **kwargs) 14 parser.add_argument('--build-properties', help=argparse.SUPPRESS) 15 parser.add_argument('--summary-json', help=argparse.SUPPRESS) 16 parser.add_argument('--task-output-dir', help=argparse.SUPPRESS) 18 help=argparse.SUPPRESS) 19 parser.add_argument('jsons_to_merge', nargs='*', help=argparse.SUPPRESS)
|
| /external/pigweed/pw_cli/py/pw_cli/ |
| D | arguments.py | 16 import argparse 37 def parse_args() -> argparse.Namespace: 51 """Transforms argparse actions into bash, fish, zsh shell completions.""" 53 action: argparse.Action 54 parser: argparse.ArgumentParser 135 parser: argparse.ArgumentParser, 144 parser: argparse.ArgumentParser, 174 class _ArgumentParserWithBanner(argparse.ArgumentParser): 184 parser: argparse.ArgumentParser, 185 ) -> argparse.ArgumentParser: [all …]
|
| /external/pigweed/pw_emu/py/pw_emu/ |
| D | __main__.py | 16 import argparse 35 def _cmd_gdb_cmds(emu, args: argparse.Namespace) -> None: 41 def _cmd_load(emu: Emulator, args: argparse.Namespace) -> None: 49 def _cmd_start(emu: Emulator, args: argparse.Namespace) -> None: 104 def _cmd_run(emu: Emulator, args: argparse.Namespace) -> None: 139 def _cmd_restart(emu: Emulator, args: argparse.Namespace) -> None: 147 def _cmd_stop(emu: Emulator, _args: argparse.Namespace) -> None: 153 def _cmd_reset(emu: Emulator, _args: argparse.Namespace) -> None: 159 def _cmd_gdb(emu: Emulator, args: argparse.Namespace) -> None: 176 def _cmd_prop_ls(emu: Emulator, args: argparse.Namespace) -> None: [all …]
|
| /external/cronet/build/android/pylib/utils/ |
| D | argparse_utils.py | 7 import argparse 10 class CustomHelpAction(argparse.Action): 18 parser = argparse.ArgumentParser(...) 25 # Derived from argparse._HelpAction from 26 # https://github.com/python/cpython/blob/main/Lib/argparse.py 32 dest=argparse.SUPPRESS, 33 default=argparse.SUPPRESS,
|
| /external/angle/build/android/pylib/utils/ |
| D | argparse_utils.py | 7 import argparse 10 class CustomHelpAction(argparse.Action): 18 parser = argparse.ArgumentParser(...) 25 # Derived from argparse._HelpAction from 26 # https://github.com/python/cpython/blob/main/Lib/argparse.py 32 dest=argparse.SUPPRESS, 33 default=argparse.SUPPRESS,
|
| /external/pigweed/pw_protobuf_compiler/py/pw_protobuf_compiler/ |
| D | generate_protos.py | 16 import argparse 35 def _argument_parser() -> argparse.ArgumentParser: 38 parser = argparse.ArgumentParser(description=__doc__) 57 type=argparse.FileType('r'), 103 def protoc_common_args(args: argparse.Namespace) -> tuple[str, ...]: 111 args: argparse.Namespace, include_paths: list[str] 136 args: argparse.Namespace, _include_paths: list[str] 147 args: argparse.Namespace, _include_paths: list[str] 156 args: argparse.Namespace, _include_paths: list[str] 172 args: argparse.Namespace, _include_paths: list[str] [all …]
|
| /external/pigweed/pw_rpc/py/pw_rpc/ |
| D | testing.py | 16 import argparse 28 parser: argparse.ArgumentParser | None = None, 29 ) -> argparse.Namespace: 32 parser = argparse.ArgumentParser( 53 nargs=argparse.REMAINDER, 68 def _parse_subprocess_integration_test_args() -> argparse.Namespace: 69 parser = argparse.ArgumentParser( 91 nargs=argparse.REMAINDER,
|
| /external/cronet/testing/unexpected_passes_common/ |
| D | argument_parsing.py | 6 import argparse 13 def AddCommonArguments(parser: argparse.ArgumentParser) -> None: 17 parser: An argparse.ArgumentParser instance to add arguments to. 114 def PerformCommonPostParseSetup(args: argparse.Namespace) -> None: 118 args: Parsed arguments from an argparse.ArgumentParser. 124 def SetLoggingVerbosity(args: argparse.Namespace) -> None: 128 args: Parsed arguments from an argparse.ArgumentParser. 144 def SetInternalBuilderInclusion(args: argparse.Namespace) -> None: 148 args: Parsed arguments from an argparse.ArgumentParser.
|
| /external/pigweed/pw_build/py/pw_build/ |
| D | exec.py | 16 import argparse 35 parser: argparse.ArgumentParser | None = None, 36 ) -> argparse.ArgumentParser: 40 parser = argparse.ArgumentParser(description=__doc__) 44 type=argparse.FileType('r'), 61 type=argparse.FileType('r'), 80 nargs=argparse.REMAINDER, 122 # the various spaces in the command which means when argparse 123 # gets the string argparse believes this as a single argument
|
| D | project_builder_prefs.py | 16 import argparse 45 [argparse.ArgumentParser], argparse.ArgumentParser 48 parser = argparse.ArgumentParser( 49 description='', formatter_class=argparse.RawDescriptionHelpFormatter 65 [argparse.ArgumentParser], argparse.ArgumentParser 111 def apply_command_line_args(self, new_args: argparse.Namespace) -> None: 144 # build_dir should be a list of strings from argparse
|
| D | file_prefix_map.py | 16 import argparse 25 def _parse_args() -> argparse.Namespace: 28 parser = argparse.ArgumentParser(description=__doc__) 31 type=argparse.FileType('r'), 37 type=argparse.FileType('r'), 51 type=argparse.FileType('w'),
|
| D | project_builder_argparse.py | 14 """Pigweed Project Builder Common argparse.""" 16 import argparse 21 parser: argparse.ArgumentParser, 22 ) -> argparse.ArgumentParser: 138 action=argparse.BooleanOptionalAction, 145 action=argparse.BooleanOptionalAction,
|
| /external/webrtc/tools_webrtc/perf/ |
| D | process_perf_results.py | 21 import argparse 102 parser = argparse.ArgumentParser() 103 parser.add_argument('--build-properties', help=argparse.SUPPRESS) 104 parser.add_argument('--summary-json', help=argparse.SUPPRESS) 105 parser.add_argument('--task-output-dir', help=argparse.SUPPRESS) 106 parser.add_argument('--test-suite', help=argparse.SUPPRESS) 107 parser.add_argument('-o', '--output-json', help=argparse.SUPPRESS) 108 parser.add_argument('json_files', nargs='*', help=argparse.SUPPRESS)
|
| /external/pigweed/pw_presubmit/py/pw_presubmit/ |
| D | cli.py | 16 import argparse 89 parser: argparse.ArgumentParser, programs: presubmit.Programs, default: str 94 raise argparse.ArgumentTypeError( 101 # This argument is used to copy the default program into the argparse 106 help=argparse.SUPPRESS, 123 help=argparse.SUPPRESS, 153 raise argparse.ArgumentTypeError( 194 help=argparse.SUPPRESS, 199 parser: argparse.ArgumentParser, 269 help=argparse.SUPPRESS, [all …]
|
| /external/mesa3d/bin/ |
| D | commit_in_branch.py | 3 import argparse 8 def print_(args: argparse.Namespace, success: bool, message: str) -> None: 80 raise argparse.ArgumentTypeError('invalid commit identifier: ' + commit) 89 raise argparse.ArgumentTypeError('must be in the form `remote/branch`') 101 raise argparse.ArgumentTypeError('Invalid remote: ' + upstream) 104 raise argparse.ArgumentTypeError('Invalid branch: ' + branch) 110 parser = argparse.ArgumentParser(description="""
|
| /external/cronet/build/fuchsia/test/ |
| D | ffx_emulator_unittests.py | 7 import argparse 22 argparse.Namespace( 39 argparse.Namespace( 54 argparse.Namespace( 72 argparse.Namespace( 90 argparse.Namespace(
|
| /external/angle/build/fuchsia/test/ |
| D | ffx_emulator_unittests.py | 7 import argparse 22 argparse.Namespace( 39 argparse.Namespace( 54 argparse.Namespace( 72 argparse.Namespace( 90 argparse.Namespace(
|
| /external/cronet/build/3pp_common/ |
| D | print_cipd_version.py | 6 import argparse 15 parser = argparse.ArgumentParser() 18 parser.add_argument('--subdir', required=True, help=argparse.SUPPRESS) 21 help=argparse.SUPPRESS) 22 parser.add_argument('--git-log-url', help=argparse.SUPPRESS)
|
| /external/angle/build/3pp_common/ |
| D | print_cipd_version.py | 6 import argparse 15 parser = argparse.ArgumentParser() 18 parser.add_argument('--subdir', required=True, help=argparse.SUPPRESS) 21 help=argparse.SUPPRESS) 22 parser.add_argument('--git-log-url', help=argparse.SUPPRESS)
|
| /external/pigweed/pw_toolchain/py/pw_toolchain/ |
| D | clang_apply_replacements.py | 22 import argparse 81 def arguments() -> argparse.ArgumentParser: 84 parser = argparse.ArgumentParser(description=__doc__) 89 raise argparse.ArgumentTypeError( 106 action=argparse.BooleanOptionalAction, 116 action=argparse.BooleanOptionalAction,
|