From 9350054794a5dcf29380056c23c61779629ef82e Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Mon, 17 Apr 2017 18:55:55 +0200 Subject: [PATCH] Keep only one newline between Aliases and Flags in help (#410) Fix #409 --- command.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command.go b/command.go index a5b47d0..f4cd95c 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}}