do not print 'AUTHOR(S):' is there is no author

Signed-off-by: Victor Vieux <victorvieux@gmail.com>
main
Victor Vieux 9 years ago committed by jszwedko
parent 2e64a10881
commit 7c041f5811

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

Loading…
Cancel
Save