Use the correct field

This commit is contained in:
Corey Johnson 2020-04-22 14:03:44 -07:00
parent 4b2382c737
commit e68be52ed0

View file

@ -247,7 +247,7 @@ func rootHelpFunc(command *cobra.Command, s []string) {
{
"",
command.Long},
{"USAGE", command.UsageString()},
{"USAGE", command.Use},
{"CORE COMMANDS", strings.Join(coreCommands, "\n")},
{"ADDITIONAL COMMANDS", strings.Join(additionalCommands, "\n")},
{"FLAGS", strings.TrimRight(command.LocalFlags().FlagUsages(), "\n")},