Home
last modified time | relevance | path

Searched refs:try_get_matches_from_mut (Results 1 – 7 of 7) sorted by relevance

/third_party/rust/crates/clap/tests/builder/
Dconflicts.rs112 let result = cmd.try_get_matches_from_mut(vec!["myprog", "--other", "-f"]); in arg_conflicts_with_group()
117 let result = cmd.try_get_matches_from_mut(vec!["myprog", "-f", "--some"]); in arg_conflicts_with_group()
122 let result = cmd.try_get_matches_from_mut(vec!["myprog", "--some"]); in arg_conflicts_with_group()
127 let result = cmd.try_get_matches_from_mut(vec!["myprog", "--other"]); in arg_conflicts_with_group()
132 let result = cmd.try_get_matches_from_mut(vec!["myprog", "--flag"]); in arg_conflicts_with_group()
150 let result = cmd.try_get_matches_from_mut(vec!["myprog", "-f"]); in arg_conflicts_with_group_with_multiple_sources()
155 let result = cmd.try_get_matches_from_mut(vec!["myprog", "--some", "usb1"]); in arg_conflicts_with_group_with_multiple_sources()
160 let result = cmd.try_get_matches_from_mut(vec!["myprog", "--some", "usb1", "--other", "40"]); in arg_conflicts_with_group_with_multiple_sources()
165 let result = cmd.try_get_matches_from_mut(vec!["myprog", "-f", "--some", "usb1"]); in arg_conflicts_with_group_with_multiple_sources()
183 let result = cmd.try_get_matches_from_mut(vec!["myprog", "--other", "-f"]); in group_conflicts_with_arg()
[all …]
Dglobal_args.rs22 let _ = cmd.try_get_matches_from_mut(vec!["myprog"]); in issue_1076()
23 let _ = cmd.try_get_matches_from_mut(vec!["myprog"]); in issue_1076()
24 let _ = cmd.try_get_matches_from_mut(vec!["myprog"]); in issue_1076()
Dmultiple_values.rs411 let r = cmd.try_get_matches_from_mut(["test", "-p42"]); in optional_value()
417 let r = cmd.try_get_matches_from_mut(["test", "-p"]); in optional_value()
423 let r = cmd.try_get_matches_from_mut(["test", "-p", "24", "-p", "42"]); in optional_value()
1519 let m = a.try_get_matches_from_mut(vec!["myprog", "--pos", "val1", "val2"]); in values_per_occurrence_named()
1530 let m = a.try_get_matches_from_mut(vec![ in values_per_occurrence_named()
1550 let m = a.try_get_matches_from_mut(vec!["myprog", "val1", "val2"]); in values_per_occurrence_positional()
Dposix_compatible.rs329 .try_get_matches_from_mut(["test", "--name=ahmed", "--no-name", "--name=ali"]) in incremental_override()
Dsubcommands.rs483 let m = cmd.try_get_matches_from_mut(["hostname", "hostname"]); in hostname_like_multicall()
/third_party/rust/crates/clap/tests/
Dmacros.rs284 let r = cmd.try_get_matches_from_mut(["test", "-p42"]); in optional_value()
290 let r = cmd.try_get_matches_from_mut(["test", "-p"]); in optional_value()
296 let r = cmd.try_get_matches_from_mut(["test", "-p", "24", "-p", "42"]); in optional_value()
/third_party/rust/crates/clap/src/builder/
Dcommand.rs513 self.try_get_matches_from_mut(&mut env::args_os()) in get_matches_mut()
578 self.try_get_matches_from_mut(itr).unwrap_or_else(|e| { in get_matches_from()
624 self.try_get_matches_from_mut(itr) in try_get_matches_from()
658 pub fn try_get_matches_from_mut<I, T>(&mut self, itr: I) -> ClapResult<ArgMatches> in try_get_matches_from_mut() method