Home
last modified time | relevance | path

Searched refs:ArgMatches (Results 1 – 18 of 18) sorted by relevance

/third_party/rust/crates/clap/tests/builder/
Dpropagate_globals.rs1 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
Doccurrences.rs1 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
Dopts.rs1 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/
Dderive.rs5 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()
Dlib.rs104 pub use crate::parser::ArgMatches;
/third_party/rust/crates/clap/examples/derive_ref/
Dflatten_hand_args.rs2 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()
Dhand_subcommand.rs2 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()
Dinterop_tests.md8 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/src/parser/
Darg_matcher.rs11 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;
Dmod.rs26 pub use self::matches::{ArgMatches, Indices, ValueSource};
/third_party/rust/crates/clap/examples/
Dfind.rs3 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/matches/
Darg_matches.rs66 pub struct ArgMatches { struct
76 impl ArgMatches { argument
872 impl ArgMatches { implementation
926 pub fn subcommand(&self) -> Option<(&str, &ArgMatches)> { in subcommand() argument
984 pub fn remove_subcommand(&mut self) -> Option<(String, ArgMatches)> { in remove_subcommand() argument
1027 pub fn subcommand_matches(&self, name: &str) -> Option<&ArgMatches> { in subcommand_matches() argument
1079 impl ArgMatches { implementation
1229 impl ArgMatches { implementation
1347 pub(crate) matches: ArgMatches,
1902 static_assertions::assert_impl_all!(ArgMatches: Send, Sync, Unpin); in check_auto_traits()
[all …]
Dmod.rs11 pub use arg_matches::{ArgMatches, Indices};
/third_party/rust/crates/clap/clap_derive/src/
Ddummies.rs33 fn from_arg_matches(_m: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error> { in from_arg_matches()
36 …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/
Dsubcommand.rs82 …fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Er… in gen_for_enum()
88 …fn update_from_arg_matches(&mut self, __clap_arg_matches: &clap::ArgMatches) -> ::std::result::Res… in gen_for_enum()
555 …fn from_arg_matches_mut(__clap_arg_matches: &mut clap::ArgMatches) -> ::std::result::Result<Self, … in gen_from_arg_matches()
663 __clap_arg_matches: &mut clap::ArgMatches, in gen_update_from_arg_matches()
Dargs.rs111 …fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Er… in gen_for_struct()
115 …fn from_arg_matches_mut(__clap_arg_matches: &mut clap::ArgMatches) -> ::std::result::Result<Self, … in gen_for_struct()
121 …fn update_from_arg_matches(&mut self, __clap_arg_matches: &clap::ArgMatches) -> ::std::result::Res… in gen_for_struct()
125 …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/
Dcommand.rs25 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/
DCHANGELOG.md126 - `ArgMatches::get_occurrences` support for argument values to be grouped by their occurrence
250 - Only put `ArgGroup` in `ArgMatches` when explicitly specified, fixing derives handling of option-…
425 Additionally, to avoid `ArgMatches` from borrowing (and for some features we
433 As an extension of that work, you can now call `ArgMatches::ids` to iterate
510 - `ArgAction::SetTrue`, requiring `ArgMatches::get_flag` instead of `ArgMatches::is_present`
511 - `ArgAction::Count`, requiring `ArgMatches::get_count` instead of `ArgMatches::occurrences_of`
512 - `ArgAction::Set`, requiring `ArgMatches::get_one` instead of `ArgMatches::value_of`
513 - `ArgAction::Append`, requiring `ArgMatches::get_many` instead of `ArgMatches::values_of`
542 - Looking up a group in `ArgMatches` now returns the arg `Id`s, rather than the values to reduce ov…
768 - When misusing `ArgMatches::value_of` and friends, debug asserts were turned into panics
[all …]