Lines Matching refs:matches
6 let matches = cli().get_matches();
7 let values = Value::from_matches(&matches);
17 arg!(--name <NAME> "Base of file name (the path with the leading directories removed) matches shell pattern pattern").group("tests"),
34 pub fn from_matches(matches: &ArgMatches) -> Vec<(clap::Id, Self)> {
36 for id in matches.ids() {
37 if matches.try_get_many::<clap::Id>(id.as_str()).is_ok() {
41 let value_source = matches
43 .expect("id came from matches");
48 if Self::extract::<String>(matches, id, &mut values) {
51 if Self::extract::<bool>(matches, id, &mut values) {
54 unimplemented!("unknown type for {}: {:?}", id, matches);
60 matches: &ArgMatches,
64 match matches.try_get_many::<T>(id.as_str()) {
67 matches
69 .expect("id came from matches"),
79 unreachable!("id came from matches")
83 unreachable!("id came from matches")