/third_party/rust/crates/clap/tests/builder/ |
D | propagate_globals.rs | 1 use clap::{Arg, ArgAction, ArgMatches, Command}; 23 fn get_matches(cmd: Command, argv: &'static str) -> ArgMatches { in get_matches() argument 28 fn get_outer_matches(m: &ArgMatches) -> &ArgMatches { in get_outer_matches() argument 33 fn get_inner_matches(m: &ArgMatches) -> &ArgMatches { in get_inner_matches() argument 39 fn top_can_access_arg<T: Into<Option<&'static str>>>(m: &ArgMatches, val: T) -> bool { in top_can_access_arg() argument 43 fn inner_can_access_arg<T: Into<Option<&'static str>>>(m: &ArgMatches, val: T) -> bool { in inner_can_access_arg() argument 50 fn outer_can_access_arg<T: Into<Option<&'static str>>>(m: &ArgMatches, val: T) -> bool { in outer_can_access_arg() argument 57 fn top_can_access_flag(m: &ArgMatches, present: bool, occurrences: u8) -> bool { in top_can_access_flag() argument 62 fn inner_can_access_flag(m: &ArgMatches, present: bool, occurrences: u8) -> bool { in inner_can_access_flag() argument 68 fn outer_can_access_flag(m: &ArgMatches, present: bool, occurrences: u8) -> bool { in outer_can_access_flag() argument
|
D | occurrences.rs | 1 use clap::{Arg, ArgAction, ArgMatches, Command}; 3 fn occurrences_as_vec_vec<'a>(m: &'a ArgMatches, name: &str) -> Vec<Vec<&'a String>> { in occurrences_as_vec_vec() argument
|
D | opts.rs | 1 use clap::{arg, error::ErrorKind, Arg, ArgAction, ArgMatches, Command}; 481 fn issue_1105_setup(argv: Vec<&'static str>) -> Result<ArgMatches, clap::Error> { in issue_1105_setup() argument
|
/third_party/rust/crates/clap/src/ |
D | derive.rs | 5 use crate::{ArgMatches, Command, Error}; 209 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error>; in from_arg_matches() 243 fn from_arg_matches_mut(matches: &mut ArgMatches) -> Result<Self, Error> { in from_arg_matches_mut() 248 fn update_from_arg_matches(&mut self, matches: &ArgMatches) -> Result<(), Error>; in update_from_arg_matches() 251 fn update_from_arg_matches_mut(&mut self, matches: &mut ArgMatches) -> Result<(), Error> { in update_from_arg_matches_mut() 433 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> { in from_arg_matches() 436 fn from_arg_matches_mut(matches: &mut ArgMatches) -> Result<Self, Error> { in from_arg_matches_mut() 439 fn update_from_arg_matches(&mut self, matches: &ArgMatches) -> Result<(), Error> { in update_from_arg_matches() 442 fn update_from_arg_matches_mut(&mut self, matches: &mut ArgMatches) -> Result<(), Error> { in update_from_arg_matches_mut()
|
D | lib.rs | 104 pub use crate::parser::ArgMatches;
|
/third_party/rust/crates/clap/examples/derive_ref/ |
D | flatten_hand_args.rs | 2 use clap::{Arg, ArgAction, ArgMatches, Args, Command, FromArgMatches, Parser}; 12 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> { in from_arg_matches() 16 fn from_arg_matches_mut(matches: &mut ArgMatches) -> Result<Self, Error> { in from_arg_matches_mut() 23 fn update_from_arg_matches(&mut self, matches: &ArgMatches) -> Result<(), Error> { in update_from_arg_matches() 27 fn update_from_arg_matches_mut(&mut self, matches: &mut ArgMatches) -> Result<(), Error> { in update_from_arg_matches_mut()
|
D | hand_subcommand.rs | 2 use clap::{ArgMatches, Args as _, Command, FromArgMatches, Parser, Subcommand}; 22 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> { in from_arg_matches() 36 fn update_from_arg_matches(&mut self, matches: &ArgMatches) -> Result<(), Error> { in update_from_arg_matches()
|
D | interop_tests.md | 8 Value of derived via ArgMatches: false 18 Value of derived via ArgMatches: true 28 Value of derived via ArgMatches: true
|
/third_party/rust/crates/clap/examples/ |
D | find.rs | 3 use clap::{arg, command, ArgGroup, ArgMatches, Command}; 34 pub fn from_matches(matches: &ArgMatches) -> Vec<(clap::Id, Self)> { in from_matches() 60 matches: &ArgMatches, in extract()
|
/third_party/rust/crates/clap/src/parser/ |
D | arg_matcher.rs | 11 use crate::parser::{ArgMatches, MatchedArg, SubCommand, ValueSource}; 18 matches: ArgMatches, 25 matches: ArgMatches { in new() 43 pub(crate) fn into_inner(self) -> ArgMatches { in into_inner() argument 243 type Target = ArgMatches;
|
D | mod.rs | 26 pub use self::matches::{ArgMatches, Indices, ValueSource};
|
/third_party/rust/crates/clap/src/parser/matches/ |
D | arg_matches.rs | 66 pub struct ArgMatches { struct 76 impl ArgMatches { argument 864 impl ArgMatches { impl 918 pub fn subcommand(&self) -> Option<(&str, &ArgMatches)> { in subcommand() argument 976 pub fn remove_subcommand(&mut self) -> Option<(String, ArgMatches)> { in remove_subcommand() argument 1019 pub fn subcommand_matches(&self, name: &str) -> Option<&ArgMatches> { in subcommand_matches() argument 1071 impl ArgMatches { implementation 1221 impl ArgMatches { impl 1340 pub(crate) matches: ArgMatches, 1895 static_assertions::assert_impl_all!(ArgMatches: Send, Sync, Unpin); in check_auto_traits() [all …]
|
D | mod.rs | 11 pub use arg_matches::{ArgMatches, Indices};
|
/third_party/rust/crates/clap/clap_derive/src/ |
D | dummies.rs | 35 fn from_arg_matches(_m: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error> { in from_arg_matches() 38 …fn update_from_arg_matches(&mut self, matches: &clap::ArgMatches) -> ::std::result::Result<(), cla… in from_arg_matches()
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
D | subcommand.rs | 86 …fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Er… in gen_for_enum() 92 …fn update_from_arg_matches(&mut self, __clap_arg_matches: &clap::ArgMatches) -> ::std::result::Res… in gen_for_enum() 559 …fn from_arg_matches_mut(__clap_arg_matches: &mut clap::ArgMatches) -> ::std::result::Result<Self, … in gen_from_arg_matches() 667 __clap_arg_matches: &mut clap::ArgMatches, in gen_update_from_arg_matches()
|
D | args.rs | 115 …fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Er… in gen_for_struct() 119 …fn from_arg_matches_mut(__clap_arg_matches: &mut clap::ArgMatches) -> ::std::result::Result<Self, … in gen_for_struct() 125 …fn update_from_arg_matches(&mut self, __clap_arg_matches: &clap::ArgMatches) -> ::std::result::Res… in gen_for_struct() 129 …fn update_from_arg_matches_mut(&mut self, __clap_arg_matches: &mut clap::ArgMatches) -> ::std::res… in gen_for_struct()
|
/third_party/rust/crates/clap/src/builder/ |
D | command.rs | 25 use crate::parser::{ArgMatcher, ArgMatches, Parser}; 489 pub fn get_matches(self) -> ArgMatches { in get_matches() argument 512 pub fn get_matches_mut(&mut self) -> ArgMatches { in get_matches_mut() argument 546 pub fn try_get_matches(self) -> ClapResult<ArgMatches> { in try_get_matches() argument 573 pub fn get_matches_from<I, T>(mut self, itr: I) -> ArgMatches in get_matches_from() 619 pub fn try_get_matches_from<I, T>(mut self, itr: I) -> ClapResult<ArgMatches> 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() 3767 fn get_used_global_args(&self, matches: &ArgMatches, global_arg_vec: &mut Vec<Id>) { in get_used_global_args() argument 3785 ) -> ClapResult<ArgMatches> { in _do_parse() argument
|
/third_party/rust/crates/clap/ |
D | CHANGELOG.md | 67 - `ArgMatches::get_occurrences` support for argument values to be grouped by their occurrence 191 - Only put `ArgGroup` in `ArgMatches` when explicitly specified, fixing derives handling of option-… 366 Additionally, to avoid `ArgMatches` from borrowing (and for some features we 374 As an extension of that work, you can now call `ArgMatches::ids` to iterate 451 - `ArgAction::SetTrue`, requiring `ArgMatches::get_flag` instead of `ArgMatches::is_present` 452 - `ArgAction::Count`, requiring `ArgMatches::get_count` instead of `ArgMatches::occurrences_of` 453 - `ArgAction::Set`, requiring `ArgMatches::get_one` instead of `ArgMatches::value_of` 454 - `ArgAction::Append`, requiring `ArgMatches::get_many` instead of `ArgMatches::values_of` 483 - Looking up a group in `ArgMatches` now returns the arg `Id`s, rather than the values to reduce ov… 709 - When misusing `ArgMatches::value_of` and friends, debug asserts were turned into panics [all …]
|