Lines Matching refs:setting
1001 /// **NOTE:** The same thing can be done manually by setting the final positional argument to
1002 /// [`Arg::value_delimiter(None)`]. Using this setting is safer, because it's easier to locate
1063 /// **NOTE:** This setting applies globally and *not* on a per-command basis.
1090 /// **NOTE:** This setting applies globally and *not* on a per-command basis.
1286 /// // Since the setting `help_expected` is activated, this will lead to
1355 /// **CAUTION:** This setting can interfere with [positional/free arguments], take care when
1359 /// conjunction with this setting.
1417 /// subcommands, this setting **should** be used!
1659 /// **NOTE:** Using this setting disables `clap`s "context-aware" usage
1660 /// strings. After this setting is set, this will be *the only* usage string
1809 pub(crate) fn setting<F>(mut self, setting: F) -> Self
1813 self.settings.insert(setting.into());
1819 pub(crate) fn unset_setting<F>(mut self, setting: F) -> Self
1823 self.settings.remove(setting.into());
1829 pub(crate) fn global_setting(mut self, setting: AppSettings) -> Self {
1830 self.settings.set(setting);
1831 self.g_settings.set(setting);
1837 pub(crate) fn unset_global_setting(mut self, setting: AppSettings) -> Self {
1838 self.settings.unset(setting);
1839 self.g_settings.unset(setting);
2008 self.setting(AppSettings::ArgRequiredElseHelp)
2021 self.setting(AppSettings::AllowHyphenValues)
2034 self.setting(AppSettings::AllowNegativeNumbers)
2047 self.setting(AppSettings::TrailingVarArg)
2076 /// With this setting the following invocations are posisble:
2163 self.setting(AppSettings::AllowMissingPositional)
2671 self.setting(AppSettings::Hidden)
2697 self.setting(AppSettings::SubcommandRequired)
2707 /// **NOTE:** Use this setting with caution,
2744 self.setting(AppSettings::AllowExternalSubcommands)
2819 /// This setting disables that functionality and says that arguments can
2820 /// only follow the *final* subcommand. For instance using this setting
2838 self.setting(AppSettings::ArgsNegateSubcommands)
2855 /// This setting instructs the parser to stop when encountering a subcommand instead of
2897 self.setting(AppSettings::SubcommandPrecedenceOverArg)
2907 /// using this setting would allow you to set those arguments to [`Arg::required(true)`]
2950 self.setting(AppSettings::SubcommandsNegateReqs)
3074 self.setting(AppSettings::Multicall)
3352 debug!("Command::color: Color setting...");
4282 .setting(AppSettings::DisableHelpFlag)
4283 .setting(AppSettings::DisableVersionFlag);
4302 .setting(AppSettings::DisableHelpFlag)
4303 .setting(AppSettings::DisableVersionFlag)