Searched refs:get_matches_from (Results 1 – 7 of 7) sorted by relevance
/third_party/rust/crates/clap/clap_bench/benches/ |
D | 03_complex.rs | 154 b.iter(|| create_app!().get_matches_from(vec![""])) in parse_complex() 160 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-f"])) in parse_complex_with_flag() 166 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-o", "option1"])) in parse_complex_with_opt() 172 b.iter(|| create_app!().get_matches_from(vec!["myprog", "arg1"])) in parse_complex_with_pos() 178 b.iter(|| create_app!().get_matches_from(vec!["myprog", "subcmd"])) in parse_complex_with_sc() 184 b.iter(|| create_app!().get_matches_from(vec!["myprog", "subcmd", "-f"])) in parse_complex_with_sc_flag() 190 b.iter(|| create_app!().get_matches_from(vec!["myprog", "subcmd", "-o", "option1"])) in parse_complex_with_sc_opt() 196 b.iter(|| create_app!().get_matches_from(vec!["myprog", "subcmd", "arg1"])) in parse_complex_with_sc_pos() 203 create_app!().get_matches_from(vec![ in parse_complex1() 224 create_app!().get_matches_from(vec![ in parse_complex2() [all …]
|
D | 02_simple.rs | 67 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-f"])) in parse_simple_with_flag() 73 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-o", "option1"])) in parse_simple_with_opt() 79 b.iter(|| create_app!().get_matches_from(vec!["myprog", "arg1"])) in parse_simple_with_pos() 85 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-o", "option1", "-f", "arg1"])) in parse_simple_with_complex()
|
D | 05_ripgrep.rs | 32 b.iter(|| app_short().get_matches_from(vec!["rg", "pat"])) in parse_rg() 39 app_short().get_matches_from(vec![ in parse_rg_with_complex() 59 app_short().get_matches_from(vec![ in parse_rg_with_lots()
|
D | 01_default.rs | 10 b.iter(|| Command::new("claptests").get_matches_from(vec![""])) in parse_empty()
|
D | 06_rustup.rs | 14 b.iter(|| build_cli().get_matches_from(vec![""])) in parse_rustup() 20 b.iter(|| build_cli().get_matches_from(vec!["rustup override add stable"])) in parse_rustup_with_sc()
|
/third_party/rust/crates/clap/src/ |
D | derive.rs | 107 let mut matches = <Self as CommandFactory>::command().get_matches_from(itr); in parse_from() 136 let mut matches = <Self as CommandFactory>::command_for_update().get_matches_from(itr); in update_from()
|
/third_party/rust/crates/clap/src/builder/ |
D | command.rs | 490 self.get_matches_from(env::args_os()) in get_matches() 573 pub fn get_matches_from<I, T>(mut self, itr: I) -> ArgMatches in get_matches_from() method
|