Home
last modified time | relevance | path

Searched refs:subcommand (Results 1 - 25 of 89) sorted by relevance

1234

/third_party/rust/crates/clap/clap_bench/benches/
H A D06_rustup.rs36 .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/
H A Dsubcommands.rs6 fn subcommand() { in subcommand() functions
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()
101 error: unrecognized subcommand 'subcm' in subcmd_did_you_mean_output()
103 note: subcommand 'subcmd' exists in subcmd_did_you_mean_output()
111 let cmd = Command::new("dym").subcommand(Command::new("subcmd")); in subcmd_did_you_mean_output()
121 error: unrecognized subcommand 'te' in subcmd_did_you_mean_output_ambiguous()
132 .subcommand(Comman in subcmd_did_you_mean_output_ambiguous()
[all...]
H A Dflag_subcommands.rs8 .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...]
H A Dglobal_args.rs21 .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(Comman in deeply_nested_discovery()
[all...]
H A Dapp_settings.rs33 .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()
65 error: 'sc_required' requires a subcommand but one was not provided in sub_command_required_error()
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(Comman in infer_subcommands_fail_no_args()
[all...]
H A Dhelp.rs45 .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()
82 static EXPECTED: &str = "error: unrecognized subcommand 'foo' in help_multi_subcommand_error()
209 help Print this message or the help of the given subcommand(s) in complex_help_output()
315 let cmd = Command::new("ctest").subcommand( in multi_level_sc_help()
316 Command::new("subcmd").subcommand( in multi_level_sc_help()
836 .subcommand(Command::new("update").arg( in dont_wrap_urls()
1116 help Print this message or the help of the given subcommand(s) in sc_negates_reqs()
1132 .subcommand(Comman in sc_negates_reqs()
[all...]
H A Dconflicts.rs694 .subcommand( in args_negate_subcommands_one_level()
695 Command::new("sub1").subcommand(Command::new("sub2").subcommand(Command::new("sub3"))), in args_negate_subcommands_one_level()
713 .subcommand( in args_negate_subcommands_two_levels()
719 .subcommand(Command::new("sub2").subcommand(Command::new("sub3"))), in args_negate_subcommands_two_levels()
748 .subcommand( in subcommand_conflict_error_message()
749 Command::new("sub1").subcommand(Command::new("sub2").subcommand(Command::new("sub3"))), in subcommand_conflict_error_message()
759 .subcommand(Comman in subcommand_conflict_negates_required()
[all...]
/third_party/python/Tools/peg_generator/scripts/
H A Dbenchmark.py32 subcommands = argparser.add_subparsers(title="Benchmarks", dest="subcommand")
66 def run_benchmark_xxl(subcommand, source):
67 if subcommand == "compile":
69 elif subcommand == "parse":
73 def run_benchmark_stdlib(subcommand):
84 mode=modes[subcommand],
90 subcommand = args.subcommand
93 if subcommand is None:
99 run_benchmark_xxl(subcommand, sourc
[all...]
/third_party/rust/crates/clap/examples/
H A Dmulticall-busybox.rs16 .subcommand( in main()
35 let mut subcommand = matches.subcommand(); in main() variables
36 if let Some(("busybox", cmd)) = subcommand { in main()
40 subcommand = cmd.subcommand(); in main()
42 match subcommand { in main()
45 _ => unreachable!("parser should ensure only valid subcommand names are used"), in main()
H A Dgit.rs12 .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() in main()
[all...]
H A Dpacman.rs10 // Query subcommand in main()
13 .subcommand( in main()
37 // Sync subcommand in main()
40 .subcommand( in main()
72 match matches.subcommand() { in main()
H A Dmulticall-hostname.rs9 .subcommand(Command::new("hostname").about("show hostname part of FQDN")) in main()
10 .subcommand(Command::new("dnsdomainname").about("show domain name part of FQDN")); in main()
15 _ => unreachable!("parser should ensure only valid subcommand names are used"), in main()
/third_party/rust/crates/clap/examples/derive_ref/
H A Dhand_subcommand.rs23 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 #[command(subcommand)]
73 subcommand: CliSub,
/third_party/python/Lib/test/
H A Dtest_dtrace.py62 def generate_trace_command(self, script_file, subcommand=None):
64 if subcommand:
65 command += ["-c", subcommand]
68 def trace(self, script_file, subcommand=None):
69 command = self.generate_trace_command(script_file, subcommand)
80 subcommand = " ".join([sys.executable] + python_flags + [python_file])
81 return self.trace(script_file, subcommand)
/third_party/rust/crates/clap/tests/derive/
H A Dnested_subcommands.rs23 #[command(subcommand)]
39 #[command(subcommand)]
114 #[command(subcommand)]
122 #[command(subcommand)]
151 #[command(subcommand)]
155 #[command(subcommand)]
H A Dprivacy.rs20 #[command(subcommand)]
21 pub subcommand: super::subcommands::SubCommand,
/third_party/rust/crates/clap/clap_complete/src/shells/
H A Dfish.rs135 for subcommand in cmd.get_subcommands() { in gen_fish_inner()
139 template.push_str(format!(" -a \"{}\"", &subcommand.get_name()).as_str()); in gen_fish_inner()
141 if let Some(data) = subcommand.get_about() { in gen_fish_inner()
150 for subcommand in cmd.get_subcommands() { in gen_fish_inner()
152 parent_commands.push(subcommand.get_name()); in gen_fish_inner()
153 gen_fish_inner(root_command, &parent_commands, subcommand, buffer); in gen_fish_inner()
/third_party/rust/crates/clap/clap_complete_fig/examples/
H A Dfig_completion.rs8 .subcommand(Command::new("test").subcommand(Command::new("config"))) in main()
9 .subcommand(Command::new("hello")); in main()
/third_party/rust/crates/clap/src/builder/
H A Dtests.rs9 .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/src/output/
H A Dhelp_template.rs835 for subcommand in cmd in write_subcommands()
837 .filter(|subcommand| should_show_subcommand(subcommand)) in write_subcommands()
840 styled.literal(subcommand.get_name()); in write_subcommands()
841 if let Some(short) = subcommand.get_short_flag() { in write_subcommands()
845 if let Some(long) = subcommand.get_long_flag() { in write_subcommands()
850 ord_v.push((subcommand.get_display_order(), styled, subcommand)); in write_subcommands()
877 .filter(|&subcommand| should_show_subcommand(subcommand)) in will_subcommands_wrap()
[all...]
/third_party/rust/crates/clap/clap_derive/src/derives/
H A Dparser.rs24 use crate::derives::{args, into_app, subcommand};
111 let subcommand = subcommand::gen_for_enum(item, item_name, generics, variants)?; in gen_for_enum()
117 #subcommand in gen_for_enum()
H A Dmod.rs17 mod subcommand; modules
22 pub use subcommand::derive_subcommand;
H A Dsubcommand.rs160 let subcommand = quote_spanned! { kind.span()=> in gen_augment()
165 Some(subcommand) in gen_augment()
178 let subcommand = if override_required { in gen_augment()
195 Some(subcommand) in gen_augment()
247 let subcommand = quote! { in gen_augment()
248 let #app_var = #app_var.subcommand({ in gen_augment()
259 Some(subcommand) in gen_augment()
322 let subcommand = quote! { in gen_augment()
323 let #app_var = #app_var.subcommand({ in gen_augment()
329 Some(subcommand) in gen_augment()
[all...]
/third_party/rust/crates/clap/clap_complete_fig/src/
H A Dfig.rs58 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()
/third_party/rust/crates/clap/examples/tutorial_builder/
H A D03_04_subcommands.rs8 .subcommand( in main()
15 match matches.subcommand() { in main()

Completed in 11 milliseconds

1234