diff --git a/cmd/dockerd/cobra.go b/cmd/dockerd/cobra.go index 74150c1e59..2b78ca393e 100644 --- a/cmd/dockerd/cobra.go +++ b/cmd/dockerd/cobra.go @@ -46,7 +46,7 @@ func wrappedFlagUsages(cmd *cobra.Command) string { return cmd.Flags().FlagUsagesWrapped(width - 1) } -var usageTemplate = `Usage: {{.UseLine}} +const usageTemplate = `Usage: {{.UseLine}} {{ .Short | trim }} @@ -70,5 +70,5 @@ Options: {{- end}} ` -var helpTemplate = ` +const helpTemplate = ` {{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`