Merge pull request #15370 from spowelljr/moveLicenseInHelp

Move license command to other section in help
pull/15376/head
Steven Powell 2022-11-16 12:44:11 -05:00 committed by GitHub
commit 52f8815c00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,6 @@ func init() {
updateCheckCmd,
versionCmd,
optionsCmd,
licenseCmd,
},
},
}
@ -290,6 +289,7 @@ func init() {
// Ungrouped commands will show up in the "Other Commands" section
RootCmd.AddCommand(completionCmd)
RootCmd.AddCommand(licenseCmd)
templates.ActsAsRootCommand(RootCmd, []string{"options"}, groups...)
if err := viper.BindPFlags(RootCmd.PersistentFlags()); err != nil {