From b85db2fc1b9bb5f99ee4932a86b399bdf59b474a Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Sat, 1 Apr 2017 23:03:06 +0200 Subject: [PATCH] Keep only one newline between Aliases and Flags in help Fix #409 --- command.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command.go b/command.go index 664bf5aa..c27bd05f 100644 --- a/command.go +++ b/command.go @@ -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}}