Do not generate docs for aliases (#7497)
This commit is contained in:
parent
8741b648a6
commit
1c3c402377
2 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ func run(args []string) error {
|
|||
IOStreams: ios,
|
||||
Browser: &browser{},
|
||||
Config: func() (config.Config, error) {
|
||||
return config.NewBlankConfig(), nil
|
||||
return config.NewFromString(""), nil
|
||||
},
|
||||
ExtensionManager: &em{},
|
||||
}, "", "")
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ func rootHelpFunc(f *cmdutil.Factory, command *cobra.Command, args []string) {
|
|||
cs := f.IOStreams.ColorScheme()
|
||||
|
||||
if help, _ := flags.GetBool("help"); !help && !command.Runnable() && len(flags.Args()) > 0 {
|
||||
nestedSuggestFunc(f.IOStreams.ErrOut, command, strings.Join(flags.Args(), " "))
|
||||
nestedSuggestFunc(f.IOStreams.ErrOut, command, flags.Args()[0])
|
||||
hasFailed = true
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue