Keep only one newline between Aliases and Flags in help (#410)

Fix #409
This commit is contained in:
Albert Nigmatzianov 2017-04-17 18:55:55 +02:00 committed by GitHub
parent 5deb57bbca
commit 9350054794

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}}