• Home
  • Raw
  • Download

Lines Matching refs:ArgSettings

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()
497 self.opts.iter().any(|o| !o.is_set(ArgSettings::Hidden)) in has_visible_opts()
505 self.flags.iter().any(|f| !f.is_set(ArgSettings::Hidden)) in has_visible_flags()
515 .any(|p| !p.is_set(ArgSettings::Hidden)) in has_visible_positionals()
564 a.b.is_set(ArgSettings::Multiple) && (a.index as usize != self.positionals.len()) in verify_positionals()
571 let ok = last.is_set(ArgSettings::Required) in verify_positionals()
573 || second_to_last.b.is_set(ArgSettings::Last)) in verify_positionals()
574 || last.is_set(ArgSettings::Last); in verify_positionals()
581 let ok = second_to_last.is_set(ArgSettings::Multiple) || last.is_set(ArgSettings::Last); in verify_positionals()
591 .filter(|p| p.b.settings.is_set(ArgSettings::Multiple) && p.v.num_vals.is_none()) in verify_positionals()
594 || (last.is_set(ArgSettings::Last) in verify_positionals()
595 && last.is_set(ArgSettings::Multiple) in verify_positionals()
596 && second_to_last.is_set(ArgSettings::Multiple) in verify_positionals()
611 if foundx2 && !p.b.settings.is_set(ArgSettings::Required) { in verify_positionals()
613 p.b.is_set(ArgSettings::Required), in verify_positionals()
620 } else if p.b.is_set(ArgSettings::Required) && !p.b.is_set(ArgSettings::Last) { in verify_positionals()
644 p.b.is_set(ArgSettings::Required), in verify_positionals()
650 } else if p.b.is_set(ArgSettings::Required) && !p.b.is_set(ArgSettings::Last) { in verify_positionals()
665 .any(|p| p.b.is_set(ArgSettings::Last) && p.b.is_set(ArgSettings::Required)) in verify_positionals()
806 pb.set(ArgSettings::Multiple); in parse_help_subcommand()
842 (o.is_set(ArgSettings::AllowLeadingHyphen) || app_wide_settings) in is_new_arg()
850 (p.is_set(ArgSettings::AllowLeadingHyphen) || app_wide_settings) in is_new_arg()
896 a.b.is_set(ArgSettings::Multiple) && (a.index as usize != self.positionals.len()) in get_matches_with()
901 .map_or(false, |p| !p.is_set(ArgSettings::Last)) in get_matches_with()
1094 if p.is_set(ArgSettings::Last) && !self.is_set(AS::TrailingValues) { in get_matches_with()
1129 if !p.b.settings.is_set(ArgSettings::Multiple) { in get_matches_with()
1572 || v.is_set(ArgSettings::HiddenLongHelp) in use_long_help()
1573 || v.is_set(ArgSettings::HiddenShortHelp) in use_long_help()
1795 let empty_vals = opt.is_set(ArgSettings::EmptyValues); in parse_opt()
1797 let needs_eq = opt.is_set(ArgSettings::RequireEquals); in parse_opt()
1834 let needs_delim = opt.is_set(ArgSettings::RequireDelimiter); in parse_opt()
1835 let mult = opt.is_set(ArgSettings::Multiple); in parse_opt()
1873 || arg.is_set(ArgSettings::RequireDelimiter) in add_val_to_arg()