Lines Matching refs:setting

29 /// There are two methods for constructing [`Arg`]s, using the builder pattern and setting options
43 /// // Using the traditional builder pattern and setting each option manually
50 /// // Using a usage string (setting a similar argument to the one above)
445 /// assigned in order of evaluation. Utilizing the `index` method allows for setting
521 self.setting(ArgSettings::TrailingVarArg)
539 /// **NOTE:** This setting will imply [`crate::Command::dont_collapse_args_in_usage`] because failing
542 /// **NOTE**: This setting only applies to positional arguments, and has no effect on OPTIONS
546 /// **CAUTION:** Using this setting *and* having child subcommands is not
607 self.setting(ArgSettings::Last)
670 self.setting(ArgSettings::Required)
775 self.setting(ArgSettings::Exclusive)
818 self.setting(ArgSettings::Global)
831 pub(crate) fn setting<F>(mut self, setting: F) -> Self
835 self.settings.insert(setting.into());
841 pub(crate) fn unset_setting<F>(mut self, setting: F) -> Self
845 self.settings.remove(setting.into());
1112 /// This setting can be very helpful when describing the type of input the user should be
1172 /// This setting can be very helpful when describing the type of input the user should be
1288 /// This setting also works when multiple values can be defined:
1311 self.setting(ArgSettings::IgnoreCase)
1331 /// **WARNING**: Take caution when using this setting combined with another argument using
1352 /// Not setting `Arg::allow_hyphen_values(true)` and supplying a value which starts with a
1373 self.setting(ArgSettings::AllowHyphenValues)
1402 self.setting(ArgSettings::AllowNegativeNumbers)
1454 self.setting(ArgSettings::RequireEquals)
1513 /// **NOTE:** This setting only applies to [options] and [positional arguments]
1563 /// It is worth noting that setting this requires all values to come after a `--` to indicate
1596 /// **NOTE:** This setting is perfectly compatible with [`Arg::default_value_if`] but slightly
2119 /// **NOTE:** This setting is ignored for [positional arguments] which are always displayed in
2186 /// **NOTE:** To apply this setting to all arguments and subcommands, consider using
2228 self.setting(ArgSettings::NextLineHelp)
2270 self.setting(ArgSettings::Hidden)
2303 self.setting(ArgSettings::HidePossibleValues)
2334 self.setting(ArgSettings::HideDefaultValue)
2363 self.setting(ArgSettings::HideEnv)
2393 self.setting(ArgSettings::HideEnvValues)
2472 self.setting(ArgSettings::HiddenShortHelp)
2545 self.setting(ArgSettings::HiddenLongHelp)
2643 /// **NOTE:** This setting is perfectly compatible with [`Arg::default_value`] but slightly
2645 /// at runtime. This setting however only takes effect when the user has not provided a value at
3396 /// Setting `Arg::requires_if(val, arg)` and setting the value to `val` but *not* supplying