We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents deb84a9 + 375d9a4 commit 1546d71Copy full SHA for 1546d71
1 file changed
cli/cobra.go
@@ -104,7 +104,7 @@ var usageTemplate = `Usage:
104
{{- if not .HasSubCommands}} {{.UseLine}}{{end}}
105
{{- if .HasSubCommands}} {{ .CommandPath}}{{- if .HasAvailableFlags}} [OPTIONS]{{end}} COMMAND{{end}}
106
107
-{{ .Short | trim }}
+{{if ne .Long ""}}{{ .Long | trim }}{{ else }}{{ .Short | trim }}{{end}}
108
109
{{- if gt .Aliases 0}}
110
0 commit comments