From 7c041f58117023547434ef4bf28ed6c592fdf4e8 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Thu, 23 Apr 2015 14:55:05 -0700 Subject: [PATCH] do not print 'AUTHOR(S):' is there is no author Signed-off-by: Victor Vieux --- help.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/help.go b/help.go index a45e642..1117945 100644 --- a/help.go +++ b/help.go @@ -18,11 +18,11 @@ USAGE: {{.Name}} {{if .Flags}}[global options] {{end}}command{{if .Flags}} [command options]{{end}} [arguments...] VERSION: - {{.Version}} + {{.Version}}{{if len .Authors}} AUTHOR(S): - {{range .Authors}}{{ . }} - {{end}} + {{range .Authors}}{{ . }}{{end}}{{end}} + COMMANDS: {{range .Commands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}} {{end}}{{if .Flags}}