| /third_party/rust/crates/clap/clap_bench/benches/ |
| D | 06_rustup.rs | 36 .subcommand( in build_cli() 41 .subcommand( in build_cli() 48 .subcommand( in build_cli() 61 .subcommand( in build_cli() 67 .subcommand( in build_cli() 71 .subcommand(Command::new("list").about("List installed toolchains")) in build_cli() 72 .subcommand( in build_cli() 77 .subcommand( in build_cli() 82 .subcommand( in build_cli() 88 .subcommand( in build_cli() [all …]
|
| /third_party/rust/crates/clap/tests/builder/ |
| D | subcommands.rs | 6 fn subcommand() { in subcommand() function 8 .subcommand( in subcommand() 33 .subcommand( in subcommand_none_given() 80 .subcommand(Command::new("test").alias("do-stuff")) in single_alias() 89 .subcommand(Command::new("test").aliases(["do-stuff", "test-stuff"])) in multiple_aliases() 111 let cmd = Command::new("dym").subcommand(Command::new("subcmd")); in subcmd_did_you_mean_output() 132 .subcommand(Command::new("test")) in subcmd_did_you_mean_output_ambiguous() 133 .subcommand(Command::new("temp")); in subcmd_did_you_mean_output_ambiguous() 152 .subcommand(Command::new("subcmd").arg(arg!(-s --subcmdarg <subcmdarg> "tests"))); in subcmd_did_you_mean_output_arg() 170 .subcommand(Command::new("subcmd").arg(arg!(-s --subcmdarg <subcmdarg> "tests"))); in subcmd_did_you_mean_output_arg_false_positives() [all …]
|
| D | flag_subcommands.rs | 8 .subcommand( in flag_subcommand_normal() 29 .subcommand( in flag_subcommand_normal_with_alias() 54 .subcommand( in flag_subcommand_short() 75 .subcommand( in flag_subcommand_short_with_args() 96 .subcommand( in flag_subcommand_short_with_alias() 121 .subcommand(Command::new("some").short_flag('S').short_flag_alias('S')) in flag_subcommand_short_with_alias_same_as_short_flag() 130 .subcommand( in flag_subcommand_long_with_alias_same_as_long_flag() 142 let cmd = Command::new("test").subcommand( in flag_subcommand_short_with_aliases_vis_and_hidden() 170 .subcommand( in flag_subcommand_short_with_aliases() 195 .subcommand( in flag_subcommand_short_with_alias_hyphen() [all …]
|
| D | global_args.rs | 21 .subcommand(Command::new("outer").subcommand(Command::new("inner"))); in issue_1076() 30 .subcommand( in propagate_global_arg_in_subcommand_to_subsubcommand_1385() 38 .subcommand(Command::new("sub1a")), in propagate_global_arg_in_subcommand_to_subsubcommand_1385() 59 .subcommand( in propagate_global_arg_to_subcommand_in_subsubcommand_2053() 63 .subcommand(Command::new("test")), in propagate_global_arg_to_subcommand_in_subsubcommand_2053() 99 .subcommand(Command::new("ping")) in global_arg_available_in_subcommand() 115 .subcommand( in deeply_nested_discovery() 118 .subcommand( in deeply_nested_discovery() 121 .subcommand(Command::new("d")), in deeply_nested_discovery() 145 .subcommand(Command::new("sub")); in global_overrides_default() [all …]
|
| D | help.rs | 45 .subcommand( in help_subcommand() 59 let cmd = Command::new("ctest").subcommand( in help_multi_subcommand_error() 60 Command::new("subcmd").subcommand( in help_multi_subcommand_error() 315 let cmd = Command::new("ctest").subcommand( in multi_level_sc_help() 316 Command::new("subcmd").subcommand( in multi_level_sc_help() 813 .subcommand(Command::new("update").arg( in dont_wrap_urls() 1109 .subcommand(Command::new("test")); in sc_negates_reqs() 1159 .subcommand(Command::new("test")); in args_negate_sc() 1183 .subcommand(Command::new("test").hide(true)); in issue_1046_hide_scs() 1393 .subcommand(Command::new("test").about("some")); in last_arg_mult_usage_req_with_sc() [all …]
|
| D | app_settings.rs | 33 .subcommand(Command::new("sub1")) in sub_command_negate_required() 43 .subcommand(Command::new("sub1")) in sub_command_negate_required_2() 54 .subcommand(Command::new("sub1")) in sub_command_required() 75 .subcommand(Command::new("sub1")); in sub_command_required_error() 114 .subcommand(Command::new("sub1")) in arg_required_else_help_over_req_subcommand() 174 .subcommand(Command::new("test")) in infer_subcommands_fail_no_args() 175 .subcommand(Command::new("temp")) in infer_subcommands_fail_no_args() 186 .subcommand(Command::new("test")) in infer_subcommands_fail_no_args() 187 .subcommand(Command::new("temp")) in infer_subcommands_fail_no_args() 198 .subcommand(Command::new("test")) in infer_subcommands_fail_with_args() [all …]
|
| /third_party/python/Tools/peg_generator/scripts/ |
| D | benchmark.py | 66 def run_benchmark_xxl(subcommand, source): argument 67 if subcommand == "compile": 69 elif subcommand == "parse": 73 def run_benchmark_stdlib(subcommand): argument 81 mode=modes[subcommand], 87 subcommand = args.subcommand 90 if subcommand is None: 96 run_benchmark_xxl(subcommand, source) 98 run_benchmark_stdlib(subcommand)
|
| /third_party/rust/crates/clap/examples/ |
| D | multicall-busybox.rs | 16 .subcommand( in main() 35 let mut subcommand = matches.subcommand(); in main() localVariable 36 if let Some(("busybox", cmd)) = subcommand { in main() 40 subcommand = cmd.subcommand(); in main() 42 match subcommand { in main()
|
| D | git.rs | 12 .subcommand( in cli() 18 .subcommand( in cli() 33 .subcommand( in cli() 39 .subcommand( in cli() 45 .subcommand( in cli() 49 .subcommand(Command::new("push").args(push_args())) in cli() 50 .subcommand(Command::new("pop").arg(arg!([STASH]))) in cli() 51 .subcommand(Command::new("apply").arg(arg!([STASH]))), in cli() 62 match matches.subcommand() { in main() 106 let stash_command = sub_matches.subcommand().unwrap_or(("push", sub_matches)); in main()
|
| D | pacman.md | 3 Here, `-S` is a short flag subcommand: 10 Here `--sync` is a long flag subcommand: 17 Now the short flag subcommand (`-S`) with a long flag: 45 help Print this message or the help of the given subcommand(s) 78 …` are different flags/subcommands. For example, you can have both `-Q` subcommand and `-q` flag, a…
|
| /third_party/rust/crates/clap/examples/derive_ref/ |
| D | hand_subcommand.rs | 23 match matches.subcommand() { in from_arg_matches() 37 match matches.subcommand() { in update_from_arg_matches() 54 cmd.subcommand(AddArgs::augment_args(Command::new("add"))) in augment_subcommands() 55 .subcommand(RemoveArgs::augment_args(Command::new("remove"))) in augment_subcommands() 59 cmd.subcommand(AddArgs::augment_args(Command::new("add"))) in augment_subcommands_for_update() 60 .subcommand(RemoveArgs::augment_args(Command::new("remove"))) in augment_subcommands_for_update() 72 #[clap(subcommand)] 73 subcommand: CliSub, field
|
| D | interop_tests.md | 51 error: A subcommand is required but one was not provided. 84 error: unrecognized subcommand 'unknown' 102 help Print this message or the help of the given subcommand(s) 114 subcommand: Add( 127 subcommand: Add( 157 subcommand: Remove( 171 subcommand: Remove( 188 error: unrecognized subcommand 'unknown'
|
| /third_party/rust/crates/clap/clap_complete/tests/snapshots/ |
| D | sub_subcommands.elvish | 30 cand some_cmd 'top level subcommand' 31 cand help 'Print this message or the help of the given subcommand(s)' 45 cand sub_cmd 'sub-subcommand' 46 cand help 'Print this message or the help of the given subcommand(s)' 56 cand sub_cmd 'sub-subcommand' 57 cand help 'Print this message or the help of the given subcommand(s)' 65 cand some_cmd 'top level subcommand' 66 cand help 'Print this message or the help of the given subcommand(s)' 71 cand sub_cmd 'sub-subcommand'
|
| D | sub_subcommands.fish | 5 complete -c my-app -n "__fish_use_subcommand" -f -a "some_cmd" -d 'top level subcommand' 6 …"__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' 12 …command_from sub_cmd; and not __fish_seen_subcommand_from help" -f -a "sub_cmd" -d 'sub-subcommand' 13 …n_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' 17 …command_from sub_cmd; and not __fish_seen_subcommand_from help" -f -a "sub_cmd" -d 'sub-subcommand' 18 …n_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' 20 …from some_cmd; and not __fish_seen_subcommand_from help" -f -a "some_cmd" -d 'top level subcommand' 21 …n_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' 22 …and_from some_cmd; and not __fish_seen_subcommand_from sub_cmd" -f -a "sub_cmd" -d 'sub-subcommand'
|
| D | sub_subcommands.zsh | 153 'some_cmd:top level subcommand' \ 154 'some_cmd_alias:top level subcommand' \ 155 'help:Print this message or the help of the given subcommand(s)' \ 163 'some_cmd:top level subcommand' \ 164 'help:Print this message or the help of the given subcommand(s)' \ 176 'sub_cmd:sub-subcommand' \ 177 'help:Print this message or the help of the given subcommand(s)' \ 189 'sub_cmd:sub-subcommand' \ 196 'sub_cmd:sub-subcommand' \ 197 'help:Print this message or the help of the given subcommand(s)' \
|
| /third_party/python/Lib/test/ |
| D | test_dtrace.py | 57 def generate_trace_command(self, script_file, subcommand=None): argument 59 if subcommand: 60 command += ["-c", subcommand] 63 def trace(self, script_file, subcommand=None): argument 64 command = self.generate_trace_command(script_file, subcommand) 75 subcommand = " ".join([sys.executable] + python_flags + [python_file]) 76 return self.trace(script_file, subcommand)
|
| /third_party/rust/crates/clap/tests/derive/ |
| D | nested_subcommands.rs | 23 #[command(subcommand)] 39 #[command(subcommand)] 114 #[command(subcommand)] 122 #[command(subcommand)] 151 #[command(subcommand)] 155 #[command(subcommand)]
|
| /third_party/rust/crates/clap/clap_complete/src/shells/ |
| D | fish.rs | 135 for subcommand in cmd.get_subcommands() { 139 template.push_str(format!(" -a \"{}\"", &subcommand.get_name()).as_str()); 141 if let Some(data) = subcommand.get_about() { 150 for subcommand in cmd.get_subcommands() { 152 parent_commands.push(subcommand.get_name()); 153 gen_fish_inner(root_command, &parent_commands, subcommand, buffer);
|
| D | elvish.rs | 117 for subcommand in p.get_subcommands() { in generate_inner() 118 let data = &subcommand.get_name(); in generate_inner() 119 let tooltip = get_tooltip(subcommand.get_about(), data); in generate_inner() 132 for subcommand in p.get_subcommands() { in generate_inner() 133 let subcommand_subcommands_cases = generate_inner(subcommand, &command_name); in generate_inner()
|
| D | powershell.rs | 146 for subcommand in p.get_subcommands() { in generate_inner() 147 let data = &subcommand.get_name(); in generate_inner() 148 let tooltip = get_tooltip(subcommand.get_about(), data); in generate_inner() 168 for subcommand in p.get_subcommands() { in generate_inner() 169 let subcommand_subcommands_cases = generate_inner(subcommand, &command_name); in generate_inner()
|
| /third_party/rust/crates/clap/clap_complete_fig/examples/ |
| D | fig_completion.rs | 8 .subcommand(Command::new("test").subcommand(Command::new("config"))) in main() 9 .subcommand(Command::new("hello")); in main()
|
| /third_party/rust/crates/clap/clap_complete/tests/ |
| D | common.rs | 17 .subcommand( in basic_command() 46 .subcommand( in feature_sample_command() 58 .subcommand( in special_commands_command() 71 .subcommand(clap::Command::new("some-cmd-with-hyphens").alias("hyphen")) in special_commands_command() 72 .subcommand(clap::Command::new("some-hidden-cmd").hide(true)) in special_commands_command() 151 feature_sample_command(name).subcommand( in sub_subcommands_command() 155 .subcommand( in sub_subcommands_command()
|
| /third_party/rust/crates/clap/clap_complete_fig/tests/ |
| D | common.rs | 15 .subcommand( in basic_command() 44 .subcommand( in feature_sample_command() 56 .subcommand( in special_commands_command() 69 .subcommand(clap::Command::new("some-cmd-with-hyphens").alias("hyphen")) in special_commands_command() 70 .subcommand(clap::Command::new("some-hidden-cmd").hide(true)) in special_commands_command() 149 feature_sample_command(name).subcommand( in sub_subcommands_command() 152 .subcommand( in sub_subcommands_command()
|
| /third_party/rust/crates/clap/src/builder/ |
| D | tests.rs | 9 .subcommand(Command::new("sub1")); in propagate_version() 21 .subcommand(Command::new("subcmd")); in global_setting() 41 .subcommand(Command::new("sub")); in issue_2090()
|
| /third_party/rust/crates/clap/clap_complete_fig/src/ |
| D | fig.rs | 58 for subcommand in cmd.get_subcommands() { in gen_fig_inner() 59 let mut aliases: Vec<&str> = subcommand.get_all_aliases().collect(); in gen_fig_inner() 61 aliases.insert(0, subcommand.get_name()); in gen_fig_inner() 87 escape_string(subcommand.get_name()), in gen_fig_inner() 93 if let Some(data) = subcommand.get_about() { in gen_fig_inner() 104 if subcommand.is_hide_set() { in gen_fig_inner() 109 parent_commands.push(subcommand.get_name()); in gen_fig_inner() 110 gen_fig_inner(&parent_commands, indent + 4, subcommand, buffer); in gen_fig_inner()
|