mirror of https://github.com/docker/cli.git
Merge pull request #1098 from dhiltgen/long_help
Show long help message when defined
This commit is contained in:
commit
1546d71de5
|
@ -104,7 +104,7 @@ var usageTemplate = `Usage:
|
||||||
{{- if not .HasSubCommands}} {{.UseLine}}{{end}}
|
{{- if not .HasSubCommands}} {{.UseLine}}{{end}}
|
||||||
{{- if .HasSubCommands}} {{ .CommandPath}}{{- if .HasAvailableFlags}} [OPTIONS]{{end}} COMMAND{{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}}
|
{{- if gt .Aliases 0}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue