Searched refs:get_action (Results 1 – 10 of 10) sorted by relevance
/third_party/rust/crates/clap/tests/ |
D | macros.rs | 46 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short() 54 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short() 62 assert!(matches!(arg.get_action(), clap::ArgAction::Count)); in short() 70 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short() 85 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_and_long() 94 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_and_long() 103 assert!(matches!(arg.get_action(), clap::ArgAction::Count)); in short_and_long() 112 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_and_long() 124 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_help() 134 assert!(matches!(arg.get_action(), clap::ArgAction::Help)); in short_help() [all …]
|
/third_party/rust/crates/clap/src/ |
D | macros.rs | 208 …debug_assert!(!matches!($arg.get_action(), $crate::ArgAction::Append), "Flags should precede `...`… 231 …debug_assert!(!matches!($arg.get_action(), $crate::ArgAction::Append), "Flags should precede `...`… 255 …debug_assert!(!matches!($arg.get_action(), $crate::ArgAction::Append), "Flags should precede `...`… 274 …debug_assert!(!matches!($arg.get_action(), $crate::ArgAction::Append), "Flags should precede `...`… 291 …debug_assert!(!matches!($arg.get_action(), $crate::ArgAction::Append), "Flags should precede `...`… 318 …debug_assert!(!matches!($arg.get_action(), $crate::ArgAction::Append), "Flags should precede `...`… 345 …debug_assert!(!matches!($arg.get_action(), $crate::ArgAction::Append), "Flags should precede `...`… 374 …debug_assert!(!matches!($arg.get_action(), $crate::ArgAction::Append), "Flags should precede `...`… 403 let arg = match $arg.get_action() {
|
/third_party/toybox/toys/pending/ |
D | route.c | 173 static int get_action(char ***argv, struct _arglist *list) in get_action() function 262 int action = get_action(&argv, arglist1); //verify the arg for add/del. in setroute() 266 arg2_action = get_action(&argv, arglist2); //verify the arg for -net or -host in setroute() 353 int sockfd, action = get_action(&argv, arglist1); in setroute_inet6()
|
/third_party/rust/crates/clap/src/builder/ |
D | debug_asserts.rs | 32 .filter(|x| matches!(x.get_action(), ArgAction::Version)) in assert_app() 708 arg.get_action().takes_values(), in assert_arg() 712 arg.get_action() in assert_arg() 714 if let Some(action_type_id) = arg.get_action().value_type_id() { in assert_arg() 720 arg.get_action(), in assert_arg()
|
D | arg.rs | 3944 self.get_action().takes_values() in is_takes_value_set() 3958 pub fn get_action(&self) -> &super::ArgAction { in get_action() method 4106 let nargs = if self.get_action().takes_values() { in _build() 4179 } else if matches!(*self.get_action(), ArgAction::Count) { in stylize_arg_suffix() 4222 if self.is_positional() && matches!(*self.get_action(), ArgAction::Append) { in render_arg_val() 4234 self.is_multiple_values_set() || matches!(*self.get_action(), ArgAction::Append) in is_multiple()
|
/third_party/rust/crates/clap/tests/derive/ |
D | flags.rs | 100 assert!(matches!(arg.get_action(), clap::ArgAction::Help)); in inferred_help() 124 assert!(matches!(arg.get_action(), clap::ArgAction::Version)); in inferred_version()
|
/third_party/rust/crates/clap/clap_complete_fig/src/ |
D | fig.rs | 237 if let ArgAction::Set | ArgAction::Append | ArgAction::Count = option.get_action() { in gen_options() 336 if let ArgAction::Set | ArgAction::Append | ArgAction::Count = flag.get_action() { in gen_options()
|
/third_party/rust/crates/clap/clap_mangen/src/ |
D | render.rs | 57 if matches!(opt.get_action(), ArgAction::Count) { in synopsis() 312 if opt.is_hide_default_value_set() || !opt.get_action().takes_values() { in option_default_values()
|
/third_party/rust/crates/clap/clap_complete/src/shells/ |
D | zsh.rs | 450 let multiple = if let ArgAction::Count | ArgAction::Append = o.get_action() { 550 let multiple = if let ArgAction::Count | ArgAction::Append = f.get_action() {
|
/third_party/rust/crates/clap/src/parser/ |
D | parser.rs | 1132 arg.get_action(), in react() 1177 match arg.get_action() { in react()
|