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/
H A 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(ve in group_conflicts_with_arg()
[all...]
H A 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()
H A 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()
H A Dsubcommands.rs483 let m = cmd.try_get_matches_from_mut(["hostname", "hostname"]); in hostname_like_multicall()
H A Dposix_compatible.rs329 .try_get_matches_from_mut(["test", "--name=ahmed", "--no-name", "--name=ali"]) in incremental_override()
/third_party/rust/crates/clap/tests/
H A 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/
H A Dcommand.rs226 /// let res = cmd.try_get_matches_from_mut(vec!["foo", "-b"]);
233 /// let res = cmd.try_get_matches_from_mut(vec!["foo", "-B"]);
270 /// let res = cmd.try_get_matches_from_mut(vec!["foo", "bar", "--help"]);
276 /// let res = cmd.try_get_matches_from_mut(vec!["foo", "bar"]);
487 /// [`Command::try_get_matches_from_mut`]: Command::try_get_matches_from_mut()
513 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()
651 /// let matches = cmd.try_get_matches_from_mut(arg_ve
658 pub fn try_get_matches_from_mut<I, T>(&mut self, itr: I) -> ClapResult<ArgMatches> try_get_matches_from_mut() functions
[all...]

Completed in 6 milliseconds