Home
last modified time | relevance | path

Searched refs:get_matches (Results 1 – 25 of 37) sorted by relevance

12

/third_party/rust/crates/clap/tests/builder/
Dpropagate_globals.rs23 fn get_matches(cmd: Command, argv: &'static str) -> ArgMatches { in get_matches() function
76 let m = get_matches(get_app(), "myprog --global-arg=some_value outer inner"); in global_arg_used_top_level()
85 let m = get_matches(get_app(), "myprog outer --global-arg=some_value inner"); in global_arg_used_outer()
94 let m = get_matches(get_app(), "myprog outer inner --global-arg=some_value"); in global_arg_used_inner()
103 let m = get_matches(get_app(), "myprog outer inner"); in global_arg_default_value()
112 let m = get_matches(get_app(), "myprog --global-flag outer inner"); in global_flag_used_top_level()
121 let m = get_matches(get_app(), "myprog outer --global-flag inner"); in global_flag_used_outer()
130 let m = get_matches(get_app(), "myprog outer inner --global-flag"); in global_flag_used_inner()
139 let m = get_matches(get_app(), "myprog --global-flag --global-flag outer inner"); in global_flag_2x_used_top_level()
148 let m = get_matches(get_app(), "myprog outer inner --global-flag --global-flag"); in global_flag_2x_used_inner()
/third_party/rust/crates/clap/examples/tutorial_builder/
D03_03_positional.rs6 .get_matches(); in main()
D03_02_option.rs6 .get_matches(); in main()
D03_01_flag_bool.rs11 .get_matches(); in main()
D03_01_flag_count.rs11 .get_matches(); in main()
D04_01_possible.rs10 .get_matches(); in main()
D03_02_option_mult.rs11 .get_matches(); in main()
D03_05_default_values.rs10 .get_matches(); in main()
D04_02_parse.rs10 .get_matches(); in main()
D03_04_subcommands.rs13 .get_matches(); in main()
D02_crate.rs8 .get_matches(); in main()
D03_03_positional_mult.rs6 .get_matches(); in main()
D05_01_assert.rs4 let matches = cmd().get_matches(); in main()
D02_apps.rs10 .get_matches(); in main()
D02_app_settings.rs8 .get_matches(); in main()
D04_02_validate.rs12 .get_matches(); in main()
D01_quick.rs24 .get_matches(); in main()
/third_party/rust/crates/clap/src/bin/
Dstdio-fixture.rs14 cmd.get_matches(); in main()
/third_party/rust/crates/clap/examples/
Dmulticall-hostname.rs12 match cmd.get_matches().subcommand_name() { in main()
Dcargo-example.rs11 let matches = cmd.get_matches(); in main()
Descaped-positional.rs14 .get_matches(); in main()
Dmulticall-busybox.rs34 let matches = cmd.get_matches(); in main()
/third_party/rust/crates/clap/examples/derive_ref/
Daugment_subcommands.rs16 let matches = cli.get_matches(); in main()
Daugment_args.rs14 let matches = cli.get_matches(); in main()
/third_party/rust/crates/clap/clap_complete/examples/
Ddynamic.rs24 let matches = cmd.get_matches(); in main()

12