diff --git a/cli/cobra.go b/cli/cobra.go index 1b5809e9e5..7227dd3a23 100644 --- a/cli/cobra.go +++ b/cli/cobra.go @@ -104,7 +104,7 @@ var usageTemplate = `Usage: {{- if not .HasSubCommands}} {{.UseLine}}{{end}} {{- if .HasSubCommands}} {{ .CommandPath}} COMMAND{{end}} -{{ .Short | trim }} +{{if ne .Long ""}}{{ .Long | trim }}{{ else }}{{ .Short | trim }}{{end}} {{- if gt .Aliases 0}}