| /external/autotest/site_utils/deployment/ |
| D | cmdparse.py | 2 # Use of this source code is governed by a BSD-style license that can be 5 """Command-line parsing for the DUT deployment tool. 17 `chromeos-firmwareupdate` to install dev-signed RO and RW firmware. 18 The DUT must begin in dev-mode, with hardware write-protect 22 stick, and run `chromeos-install` to install the OS. 29 `deploy test-image`: Install the test image. Optionally, first 31 `deploy repair`: Equivalent to `deploy test-image`, except that 47 USB image. The build is in a form like 'R66-10447.0.0'. 57 side-effect. This option implicitly overrides and disables all 84 This add a pair of options, named `--<name>` and `--no<name>`. [all …]
|
| D | deploy.py | 3 # Use of this source code is governed by a BSD-style license that can be 21 ## Available subcommands: 24 firmware: Install dev-signed RO+RW firmware on the target DUTs, and 27 test-image: Install the image from the servo USB stick to the target 30 DUTs. Differs from the 'test-image' subcommand in that certain 33 For all subcommands, the servo part of the assembly must be fully 36 For all subcommands except the `servo` subcommand, installing the 42 order. Other subcommands require the DUT to meet certain requirements, 45 For the `firmware` subcommand, the DUT must begin in dev-mode, with 46 hardware write-protect disabled. At successful completion, the DUT is [all …]
|
| /external/rust/crates/clap/3.2.23/src/_cookbook/ |
| D | mod.rs | 4 // - Building: They must be added to `Cargo.toml` with the appropriate `required-features`. 5 // - Testing: Ensure there is a markdown file with [trycmd](https://docs.rs/trycmd) syntax 6 // - Link the `.md` file from here 11 //! - Topics: 12 //! - Custom `parse()` 15 //! - Topics: 16 //! - Subcommands 17 //! - Cargo plugins 19 //! git-like interface: [builder][git], [derive][git_derive] 20 //! - Topics: [all …]
|
| /external/rust/crates/clap/src/_cookbook/ |
| D | mod.rs | 4 // - Building: They must be added to `Cargo.toml` with the appropriate `required-features`. 5 // - Testing: Ensure there is a markdown file with [trycmd](https://docs.rs/trycmd) syntax 6 // - Link the `.md` file from here 11 //! - Topics: 12 //! - Custom `parse()` 15 //! - Topics: 16 //! - Subcommands 17 //! - Cargo plugins 19 //! find-like interface: [builder][find] 20 //! - Topics: [all …]
|
| /external/rust/crates/clap/3.2.23/examples/ |
| D | pacman.md | 1 [`pacman`](https://wiki.archlinux.org/index.php/pacman) defines subcommands via flags. 3 Here, `-S` is a short flag subcommand: 5 $ pacman -S package 10 Here `--sync` is a long flag subcommand: 12 $ pacman --sync package 17 Now the short flag subcommand (`-S`) with a long flag: 19 $ pacman -S --search name 26 $ pacman -S -s name 29 $ pacman -Ss name 33 *(users can "stack" short subcommands with short flags or with other short flag subcommands)* [all …]
|
| D | git.md | 14 -h, --help Print help information 16 SUBCOMMANDS: 31 -h, --help Print help information 33 SUBCOMMANDS: 41 git[EXE]-add 51 -h, --help Print help information 59 git[EXE]-add 69 -h, --help Print help information 78 $ git stash -h 79 git[EXE]-stash [all …]
|
| D | git-derive.md | 7 $ git-derive 13 git-derive[EXE] <SUBCOMMAND> 16 -h, --help Print help information 18 SUBCOMMANDS: 25 $ git-derive help 30 git-derive[EXE] <SUBCOMMAND> 33 -h, --help Print help information 35 SUBCOMMANDS: 42 $ git-derive help add 43 git-derive[EXE]-add [all …]
|
| D | multicall-busybox.rs | 6 fn applet_commands() -> [Command<'static>; 2] { in applet_commands() 24 .help("Install hardlinks for all subcommands in path") in main() 31 .subcommands(applet_commands()), in main() 33 .subcommands(applet_commands()); in main()
|
| /external/rust/crates/clap/3.2.23/src/builder/ |
| D | command.rs | 34 /// Build a command-line interface. 36 /// This includes defining arguments, subcommands, parser behavior, and help output. 38 /// the [`Command::get_matches`] family of methods starts the runtime-parsing 46 /// - [Basic API][crate::App#basic-api] 47 /// - [Application-wide Settings][crate::App#application-wide-settings] 48 /// - [Command-specific Settings][crate::App#command-specific-settings] 49 /// - [Subcommand-specific Settings][crate::App#subcommand-specific-settings] 50 /// - [Reflection][crate::App#reflection] 64 /// displaying the help information from --help or -h") 107 subcommands: Vec<App<'help>>, field [all …]
|
| /external/rust/crates/clap/src/builder/ |
| D | command.rs | 34 /// Build a command-line interface. 36 /// This includes defining arguments, subcommands, parser behavior, and help output. 38 /// the [`Command::get_matches`] family of methods starts the runtime-parsing 46 /// - [Basic API][crate::Command#basic-api] 47 /// - [Application-wide Settings][crate::Command#application-wide-settings] 48 /// - [Command-specific Settings][crate::Command#command-specific-settings] 49 /// - [Subcommand-specific Settings][crate::Command#subcommand-specific-settings] 50 /// - [Reflection][crate::Command#reflection] 64 /// displaying the help information from --help or -h") 100 subcommands: Vec<Command>, field [all …]
|
| /external/rust/crates/clap/examples/ |
| D | pacman.md | 1 [`pacman`](https://wiki.archlinux.org/index.php/pacman) defines subcommands via flags. 3 Here, `-S` is a short flag subcommand: 5 $ pacman -S package 10 Here `--sync` is a long flag subcommand: 12 $ pacman --sync package 17 Now the short flag subcommand (`-S`) with a long flag: 19 $ pacman -S --search name 26 $ pacman -S -s name 29 $ pacman -Ss name 33 *(users can "stack" short subcommands with short flags or with other short flag subcommands)* [all …]
|
| D | multicall-busybox.rs | 6 fn applet_commands() -> [Command; 2] { in applet_commands() 24 .help("Install hardlinks for all subcommands in path") in main() 30 .subcommands(applet_commands()), in main() 32 .subcommands(applet_commands()); in main()
|
| /external/rust/crates/argh/src/ |
| D | lib.rs | 2 // Use of this source code is governed by a BSD-style 5 //! Derive-based argument parsing optimized for code size and conformance 10 //! a top-level `FromArgs` type from the current program's commandline 37 //! `./some_bin --help` will then output the following: 40 //! Usage: cmdname [-j] --height <height> [--pilot-nickname <pilot-nickname>] 45 //! -j, --jump whether or not to jump 46 //! --height how high to go 47 //! --pilot-nickname an optional nickname for the pilot 48 //! --help display usage information 52 //! - `./some_bin --height 5` [all …]
|
| /external/rust/crates/clap_complete/src/generator/ |
| D | utils.rs | 5 /// Gets all subcommands including child subcommands in the form of `("name", "bin_name")`. 9 pub fn all_subcommands(cmd: &Command) -> Vec<(String, String)> { in all_subcommands() 10 let mut subcmds: Vec<_> = subcommands(cmd); in all_subcommands() 22 pub fn find_subcommand_with_path<'cmd>(p: &'cmd Command, path: Vec<&str>) -> &'cmd Command { in find_subcommand_with_path() 32 /// Gets subcommands of [`clap::Command`] in the form of `("name", "bin_name")`. 36 pub fn subcommands(p: &Command) -> Vec<(String, String)> { in subcommands() function 37 debug!("subcommands: name={}", p.get_name()); in subcommands() 38 debug!("subcommands: Has subcommands...{:?}", p.has_subcommands()); in subcommands() 46 "subcommands:iter: name={}, bin_name={}", in subcommands() 59 pub fn shorts_and_visible_aliases(p: &Command) -> Vec<char> { in shorts_and_visible_aliases() [all …]
|
| /external/rust/crates/clap_complete/src/shells/ |
| D | zsh.rs | 13 fn file_name(&self, name: &str) -> String { in file_name() 27 autoload -U is-at-least in generate() 30 typeset -A opt_args in generate() 31 typeset -a _arguments_options in generate() 34 if is-at-least 5.2; then in generate() 35 _arguments_options=(-s -S -C) in generate() 37 _arguments_options=(-s -C) in generate() 41 {initial_args}{subcommands} in generate() 54 subcommands = get_subcommands_of(cmd), in generate() 68 // _describe -t commands '[bin_name] commands' commands "$@" [all …]
|
| /external/autotest/server/ |
| D | subcommand.py | 6 __author__ = """Copyright Andy Whitcroft, Martin J. Bligh - 2006, 2007""" 16 # to get log redirection for subcommands 22 Run a set of predefined subcommands in parallel. 41 remaining_timeout = max(endtime - time.time(), 1) 51 six.moves.cPickle.load(task.result_pickle, encoding='utf-8')) 58 message = 'One or more subcommands failed:\n' 79 result sub-directory created per subcommand. 109 subcommands = [] 113 subcommands.append(subcommand(function, args, subdir)) 114 return parallel(subcommands, timeout, return_results=return_results) [all …]
|
| /external/crosvm/argh_helpers/src/ |
| D | lib.rs | 2 // Use of this source code is governed by a BSD-style license that can be 13 pub fn flatten_subcommand(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in flatten_subcommand() 52 -> std::result::Result<Self, argh::EarlyExit> in flatten_subcommand() 61 if <#variant_ty as argh::SubCommands>::COMMANDS in flatten_subcommand() 74 …fn redact_arg_values(command_name: &[&str], args: &[&str]) -> std::result::Result<Vec<String>, arg… in flatten_subcommand() 82 if <#variant_ty as argh::SubCommands>::COMMANDS in flatten_subcommand() 99 impl argh::SubCommands for #name { in flatten_subcommand() 101 const TOTAL_LEN: usize = #(<#variant_ty as argh::SubCommands>::COMMANDS.len())+*; in flatten_subcommand() 103 let slices = &[#(<#variant_ty as argh::SubCommands>::COMMANDS,)*]; in flatten_subcommand() 133 ) -> proc_macro::TokenStream { in pad_description_for_argh()
|
| /external/rust/crates/argh_derive/src/ |
| D | help.rs | 2 // Use of this source code is governed by a BSD-style 29 ) -> TokenStream { in help() 87 option_description_format(&mut format_lit, None, "--help", "display usage information"); in help() 93 format_lit.push_str("Commands:{subcommands}"); in help() 95 subcommand_format_arg = quote! { subcommands = subcommands }; in help() 97 let subcommands = argh::print_subcommands( in help() localVariable 98 <#subcommand_ty as argh::SubCommands>::COMMANDS in help() 102 <#subcommand_ty as argh::SubCommands>::dynamic_commands() in help() 171 /// Add options like `[-f <foo>]` to a help format string. 181 out.push('-'); in option_usage() [all …]
|
| D | args_info.rs | 2 // Use of this source code is governed by a BSD-style 17 pub(crate) fn impl_args_info(input: &syn::DeriveInput) -> TokenStream { in impl_args_info() 47 ) -> TokenStream { in impl_arg_info_struct() 85 fn get_args_info() -> argh::CommandInfoWithArgs { in impl_arg_info_struct() 92 /// Implement ArgsInfo for an enum. The enum is a collection of subcommands. 99 ) -> TokenStream { in impl_arg_info_enum() 108 "`#![derive(ArgsInfo)]` on `enum`s can only be used to enumerate subcommands.\n", in impl_arg_info_enum() 114 // One of the variants can be annotated as providing dynamic subcommands. in impl_arg_info_enum() 116 // to determine the subcommands provided. in impl_arg_info_enum() 181 fn get_args_info() -> argh::CommandInfoWithArgs { in impl_arg_info_enum() [all …]
|
| /external/rust/crates/clap/src/_derive/ |
| D | mod.rs | 6 //! 2. [Command Attributes](#command-attributes) 7 //! 2. [ArgGroup Attributes](#arggroup-attributes) 8 //! 3. [Arg Attributes](#arg-attributes) 9 //! 4. [ValueEnum Attributes](#valueenum-attributes) 10 //! 5. [Possible Value Attributes](#possible-value-attributes) 11 //! 3. [Arg Types](#arg-types) 12 //! 4. [Doc Comments](#doc-comments) 13 //! 5. [Mixing Builder and Derive APIs](#mixing-builder-and-derive-apis) 90 //! - [`Parser`][crate::Parser] parses arguments into a `struct` (arguments) or `enum` (subcommands… 91 //! - [`Args`][crate::Args] allows defining a set of re-usable arguments that get merged into the… [all …]
|
| /external/rust/crates/clap/examples/derive_ref/ |
| D | hand_subcommand.rs | 22 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> { in from_arg_matches() 28 "Valid subcommands are `add` and `remove`", in from_arg_matches() 32 "Valid subcommands are `add` and `remove`", in from_arg_matches() 36 fn update_from_arg_matches(&mut self, matches: &ArgMatches) -> Result<(), Error> { in update_from_arg_matches() 43 "Valid subcommands are `add` and `remove`", in update_from_arg_matches() 53 fn augment_subcommands(cmd: Command) -> Command { in augment_subcommands() 58 fn augment_subcommands_for_update(cmd: Command) -> Command { in augment_subcommands_for_update() 63 fn has_subcommand(name: &str) -> bool { in has_subcommand()
|
| D | interop_tests.md | 16 $ interop_augment_args -b --derived 26 $ interop_augment_args -d --built 36 $ interop_augment_args --unknown 38 error: unexpected argument '--unknown' found 42 For more information, try '--help'. 46 ## Augment Subcommands 56 Derived subcommands: Derived { 63 $ interop_augment_subcommands derived --derived-flag 64 Derived subcommands: Derived { 71 $ interop_augment_subcommands derived --unknown [all …]
|
| /external/python/cpython3/Tools/peg_generator/scripts/ |
| D | benchmark.py | 25 "--target", 32 subcommands = argparser.add_subparsers(title="Benchmarks", dest="subcommand") variable 33 command_compile = subcommands.add_parser( 36 command_parse = subcommands.add_parser("parse", help="Benchmark parsing and generating an ast.AST") 46 times.append(end - start)
|
| /external/autotest/utils/frozen_chromite/cli/ |
| D | command.py | 1 # -*- coding: utf-8 -*- 3 # Use of this source code is governed by a BSD-style license that can be 6 """Module that contains meta-logic related to CLI commands. 60 'cros_%s' % (name.replace('-', '_'),)) 69 """Return the set of available subcommands. 71 We assume that there is a direct one-to-one relationship between the module 75 in one subcommand breaking all other subcommands (not a great solution). 77 # Filenames use underscores due to python naming limitations, but subcommands 80 return set(x[5:-3].replace('_', '-') 115 designing a new command, you must sub-class from this class and use the [all …]
|
| /external/rust/crates/clap/3.2.23/examples/derive_ref/ |
| D | hand_subcommand.rs | 24 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> { in from_arg_matches() 30 "Valid subcommands are `add` and `remove`", in from_arg_matches() 34 "Valid subcommands are `add` and `remove`", in from_arg_matches() 38 fn update_from_arg_matches(&mut self, matches: &ArgMatches) -> Result<(), Error> { in update_from_arg_matches() 45 "Valid subcommands are `add` and `remove`", in update_from_arg_matches() 55 fn augment_subcommands(cmd: Command<'_>) -> Command<'_> { in augment_subcommands() 60 fn augment_subcommands_for_update(cmd: Command<'_>) -> Command<'_> { in augment_subcommands_for_update() 65 fn has_subcommand(name: &str) -> bool { in has_subcommand()
|