Keep only one newline between Aliases and Flags in help

Fix #409
This commit is contained in:
Albert Nigmatzianov 2017-04-01 23:03:06 +02:00
parent 7be4beda01
commit b85db2fc1b

View file

@ -341,8 +341,7 @@ func (c *Command) UsageTemplate() string {
{{ .CommandPath}} [command]{{end}}{{if gt .Aliases 0}}
Aliases:
{{.NameAndAliases}}
{{end}}{{if .HasExample}}
{{.NameAndAliases}}{{end}}{{if .HasExample}}
Examples:
{{ .Example }}{{end}}{{if .HasAvailableSubCommands}}