mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
Another Typo
This commit is contained in:
parent
c86ac603f1
commit
bd1b73d7c8
2 changed files with 3 additions and 2 deletions
|
@ -698,7 +698,7 @@ pub enum AppSettings {
|
|||
/// **CAUTION:** This setting can interfere with [positional/free arguments], take care when
|
||||
/// designing CLIs which allow inferred subcommands and have potential positional/free
|
||||
/// arguments whose values could start with the same characters as subcommands. If this is the
|
||||
/// case, it's recommended to use settings such as [`AppSeettings::ArgsNegateSubcommands`] in
|
||||
/// case, it's recommended to use settings such as [`AppSettings::ArgsNegateSubcommands`] in
|
||||
/// conjunction with this setting.
|
||||
///
|
||||
/// # Examples
|
||||
|
@ -716,7 +716,7 @@ pub enum AppSettings {
|
|||
/// [`subcommands`]: ./struct..html
|
||||
/// [positional/free arguments]: ./struct.Arg.html#method.index
|
||||
/// [aliases]: ./struct.App.html#method.alias
|
||||
/// [`AppSeettings::ArgsNegateSubcommands`]: ./enum.AppSettings.html#variant.ArgsNegateSubcommands
|
||||
/// [`AppSettings::ArgsNegateSubcommands`]: ./enum.AppSettings.html#variant.ArgsNegateSubcommands
|
||||
InferSubcommands,
|
||||
|
||||
/// Specifies that the parser should not assume the first argument passed is the binary name.
|
||||
|
|
|
@ -546,6 +546,7 @@ where
|
|||
if !(self.is_set(AS::ArgsNegateSubcommands) && self.is_set(AS::ValidArgFound)
|
||||
|| self.is_set(AS::AllowExternalSubcommands)
|
||||
|| self.is_set(AS::InferSubcommands))
|
||||
// donoughliu
|
||||
{
|
||||
let cands =
|
||||
suggestions::did_you_mean(&*arg_os.to_string_lossy(), sc_names!(self.app));
|
||||
|
|
Loading…
Add table
Reference in a new issue