diff --git a/cli/cobra.go b/cli/cobra.go index 03cdfcc573..a7431a0876 100644 --- a/cli/cobra.go +++ b/cli/cobra.go @@ -104,7 +104,7 @@ var usageTemplate = `Usage: {{- if not .HasSubCommands}} {{.UseLine}}{{end}} {{- if .HasSubCommands}} {{ .CommandPath}}{{- if .HasAvailableFlags}} [OPTIONS]{{end}} COMMAND{{end}} -{{ .Short | trim }} +{{if ne .Long ""}}{{ .Long | trim }}{{ else }}{{ .Short | trim }}{{end}} {{- if gt .Aliases 0}}