/external/rust/crates/clap/src/args/ |
D | settings.rs | 40 impl_settings! {ArgSettings, 77 pub enum ArgSettings { enum 123 impl FromStr for ArgSettings { implementation 127 "required" => Ok(ArgSettings::Required), in from_str() 128 "multiple" => Ok(ArgSettings::Multiple), in from_str() 129 "global" => Ok(ArgSettings::Global), in from_str() 130 "emptyvalues" => Ok(ArgSettings::EmptyValues), in from_str() 131 "hidden" => Ok(ArgSettings::Hidden), in from_str() 132 "takesvalue" => Ok(ArgSettings::TakesValue), in from_str() 133 "usevaluedelimiter" => Ok(ArgSettings::UseValueDelimiter), in from_str() [all …]
|
D | arg.rs | 16 use args::settings::ArgSettings; 151 a.setb(ArgSettings::RequiredUnlessAll); in from_yaml() 701 self.set(ArgSettings::Last) in last() 703 self.unset(ArgSettings::Last) in last() 760 self.set(ArgSettings::Required) in required() 762 self.unset(ArgSettings::Required) in required() 822 self.unsetb(ArgSettings::EmptyValues); in require_equals() 823 self.set(ArgSettings::RequireEquals) in require_equals() 825 self.unset(ArgSettings::RequireEquals) in require_equals() 887 self.set(ArgSettings::AllowLeadingHyphen) in allow_hyphen_values() [all …]
|
D | any_arg.rs | 7 use args::settings::ArgSettings; 19 fn is_set(&self, ArgSettings) -> bool; in is_set() 20 fn set(&mut self, ArgSettings); in set() argument 68 fn is_set(&self, a: ArgSettings) -> bool { in is_set() 71 fn set(&mut self, _: ArgSettings) { in set() argument
|
D | arg_matcher.rs | 9 use args::settings::ArgSettings; 81 if !aa.has_switch() || aa.is_set(ArgSettings::Multiple) { in handle_self_overrides() 247 return if o.is_set(ArgSettings::Multiple) { in needs_more_vals() 259 return o.is_set(ArgSettings::Multiple); in needs_more_vals()
|
D | mod.rs | 8 pub use self::settings::{ArgFlags, ArgSettings};
|
/external/rust/crates/clap/src/ |
D | usage_parser.rs | 2 use args::settings::ArgSettings; 87 arg.setb(ArgSettings::Required); in name() 109 arg.setb(ArgSettings::TakesValue); in name() 183 arg.setb(ArgSettings::Multiple); in multiple() 184 if arg.is_set(ArgSettings::TakesValue) { in multiple() 185 arg.setb(ArgSettings::UseValueDelimiter); in multiple() 186 arg.unsetb(ArgSettings::ValueDelimiterNotSet); in multiple() 236 use args::ArgSettings; 245 assert!(!a.is_set(ArgSettings::Multiple)); in create_flag_usage() 254 assert!(!b.is_set(ArgSettings::Multiple)); in create_flag_usage() [all …]
|
D | lib.rs | 561 pub use args::{Arg, ArgGroup, ArgMatches, ArgSettings, OsValues, SubCommand, Values};
|
/external/rust/crates/clap/src/app/ |
D | usage.rs | 7 use args::settings::ArgSettings; 32 !o.b.is_set(ArgSettings::Required) && !o.b.is_set(ArgSettings::Hidden) in create_error_usage() 34 !p.b.is_set(ArgSettings::Required) && p.b.is_set(ArgSettings::Hidden) in create_error_usage() 88 .any(|o| !o.is_set(ArgSettings::Required) && !o.is_set(ArgSettings::Hidden)) in create_help_usage() 95 let has_last = p.positionals.values().any(|p| p.is_set(ArgSettings::Last)); in create_help_usage() 98 if p.opts.iter().any(|o| o.is_set(ArgSettings::Multiple)) in create_help_usage() 101 .any(|p| !p.is_set(ArgSettings::Required)) in create_help_usage() 108 (!p.is_set(ArgSettings::Required) || p.is_set(ArgSettings::Last)) in create_help_usage() 109 && !p.is_set(ArgSettings::Hidden) in create_help_usage() 121 .find(|p| p.b.is_set(ArgSettings::Last)) in create_help_usage() [all …]
|
D | parser.rs | 26 use args::settings::ArgSettings; 212 !(a.is_set(ArgSettings::Required) && a.is_set(ArgSettings::Global)), in debug_asserts() 217 if a.b.is_set(ArgSettings::Last) { in debug_asserts() 222 .any(|p| p.b.is_set(ArgSettings::Last)), in debug_asserts() 264 if a.is_set(ArgSettings::Required) { in add_reqs() 281 if a.is_set(ArgSettings::Last) { in implied_settings() 299 if a.is_set(ArgSettings::Global) { in add_arg() 315 } else if a.is_set(ArgSettings::TakesValue) { in add_arg() 340 } else if a.is_set(ArgSettings::TakesValue) { in add_arg_ref() 349 if a.is_set(ArgSettings::Global) { in add_arg_ref() [all …]
|
D | help.rs | 13 use args::{AnyArg, ArgSettings, DispOrder}; 312 let sep = if arg.is_set(ArgSettings::RequireEquals) { in long() 331 let delim = if arg.is_set(ArgSettings::RequireDelimiter) { in val() 345 if arg.is_set(ArgSettings::Multiple) && num == 1 { in val() 356 if arg.is_set(ArgSettings::Multiple) && num == 1 { in val() 361 if arg.is_set(ArgSettings::Multiple) { in val() 372 let nlh = self.next_line_help || arg.is_set(ArgSettings::NextLineHelp); in val() 465 || arg.is_set(ArgSettings::NextLineHelp) in help() 523 let env_val = if !a.is_set(ArgSettings::HideEnvValues) { in spec_vals() 534 if !a.is_set(ArgSettings::HideDefaultValue) { in spec_vals() [all …]
|
D | validator.rs | 10 use args::settings::ArgSettings; 110 let ok = if arg.is_set(ArgSettings::CaseInsensitive) { in validate_arg_values() 125 if !arg.is_set(ArgSettings::EmptyValues) in validate_arg_values() 330 if ma.occurs > 1 && !a.is_set(ArgSettings::Multiple) { in validate_arg_num_occurs() 353 let should_err = if a.is_set(ArgSettings::Multiple) { in validate_arg_num_vals() 363 if a.is_set(ArgSettings::Multiple) { in validate_arg_num_vals() 369 || (a.is_set(ArgSettings::Multiple) && (ma.vals.len() % num as usize) == 1) in validate_arg_num_vals() 540 if a.is_set(ArgSettings::RequiredUnlessAll) { in validate_required_unless()
|
D | mod.rs | 26 use args::{AnyArg, Arg, ArgGroup, ArgMatcher, ArgMatches, ArgSettings}; 1823 fn is_set(&self, _: ArgSettings) -> bool { in is_set() 1829 fn set(&mut self, _: ArgSettings) { in set() argument
|
/external/rust/crates/clap/src/args/arg_builder/ |
D | positional.rs | 10 use args::{AnyArg, ArgSettings, Base, DispOrder, Valued}; 46 pb.b.settings.set(ArgSettings::Multiple); in from_arg_ref() 56 a.b.settings.set(ArgSettings::Multiple); in from_arg() 71 if self.is_set(ArgSettings::Multiple) && mult_vals { in multiple_str() 81 delim.push(if self.is_set(ArgSettings::RequireDelimiter) { in name_no_brackets() 109 delim.push(if self.is_set(ArgSettings::RequireDelimiter) { in fmt() 127 if self.b.settings.is_set(ArgSettings::Multiple) in fmt() 156 fn is_set(&self, s: ArgSettings) -> bool { in is_set() 159 fn set(&mut self, s: ArgSettings) { in set() argument 239 use args::settings::ArgSettings; [all …]
|
D | option.rs | 9 use args::{AnyArg, Arg, ArgSettings, Base, DispOrder, Switched, Valued}; 58 let sep = if self.b.is_set(ArgSettings::RequireEquals) { in fmt() 69 let delim = if self.is_set(ArgSettings::RequireDelimiter) { in fmt() 85 if self.is_set(ArgSettings::Multiple) && num == 1 { in fmt() 96 if self.is_set(ArgSettings::Multiple) && num == 1 { in fmt() 104 if self.is_set(ArgSettings::Multiple) { in fmt() 135 fn is_set(&self, s: ArgSettings) -> bool { in is_set() 141 fn set(&mut self, s: ArgSettings) { in set() argument 230 use args::settings::ArgSettings; 237 o.b.settings.set(ArgSettings::Multiple); in optbuilder_display1() [all …]
|
D | base.rs | 1 use args::{Arg, ArgFlags, ArgSettings}; 27 pub fn set(&mut self, s: ArgSettings) { in set() argument 30 pub fn unset(&mut self, s: ArgSettings) { in unset() argument 33 pub fn is_set(&self, s: ArgSettings) -> bool { in is_set()
|
D | flag.rs | 10 use args::{AnyArg, ArgSettings, Base, DispOrder, Switched}; 79 fn is_set(&self, s: ArgSettings) -> bool { in is_set() 88 fn set(&mut self, s: ArgSettings) { in set() argument 174 use args::settings::ArgSettings; 179 f.b.settings.set(ArgSettings::Multiple); in flagbuilder_display()
|
/external/rust/crates/clap/src/completions/ |
D | zsh.rs | 9 use args::{AnyArg, ArgSettings}; 353 let multiple = if o.is_set(ArgSettings::Multiple) { 414 let multiple = if f.is_set(ArgSettings::Multiple) { 456 optional = if !arg.b.is_set(ArgSettings::Required) {
|