app, help: add support for multiple authors

This commit is contained in:
Harrison
2015-01-31 10:04:52 +11:00
parent e1712f3817
commit 3d7183307a
3 changed files with 24 additions and 11 deletions

View File

@@ -12,11 +12,9 @@ USAGE:
{{.Name}} {{if .Flags}}[global options] {{end}}command{{if .Flags}} [command options]{{end}} [arguments...]
VERSION:
{{.Version}}{{if or .Author .Email}}
{{.Version}}
AUTHOR:{{if .Author}}
{{.Author}}{{if .Email}} - <{{.Email}}>{{end}}{{else}}
{{.Email}}{{end}}{{end}}
AUTHOR(S): {{range .Authors}} {{ . }}{{end}}
COMMANDS:
{{range .Commands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}}