Lines Matching refs:matches
91 let matches = utils::complex_app()
94 match matches.get_one::<u8>("flag").unwrap() {
103 if matches.contains_id("option") {
104 if let Some(v) = matches.get_one::<String>("option").map(|v| v.as_str()) {
107 if let Some(ov) = matches.get_many::<String>("option") {
116 if let Some(p) = matches.get_one::<String>("positional").map(|v| v.as_str()) {
122 if *matches.get_one::<bool>("flag2").expect("defaulted by clap") {
127 matches
136 matches
147 matches
156 matches
164 let _ = match matches
174 let _ = match matches
184 if matches.contains_id("option") {
185 if let Some(v) = matches.get_one::<String>("option").map(|v| v.as_str()) {
188 if let Some(ov) = matches.get_many::<String>("option") {
197 if let Some(p) = matches.get_one::<String>("positional").map(|v| v.as_str()) {
202 if let Some("subcmd") = matches.subcommand_name() {
204 if let Some(matches) = matches.subcommand_matches("subcmd") {
205 match matches.get_one::<u8>("flag").unwrap() {
214 if matches.contains_id("option") {
215 if let Some(v) = matches.get_one::<String>("option").map(|v| v.as_str()) {
218 if let Some(ov) = matches.get_many::<String>("option") {
227 if let Some(p) = matches