Fixing more formatting

This commit is contained in:
Martin Falatic 2015-06-25 01:53:32 -07:00
parent 4d3820c145
commit 8cae4991af

17
help.go
View File

@ -15,24 +15,23 @@ var AppHelpTemplate = `NAME:
{{.Name}} - {{.Usage}} {{.Name}} - {{.Usage}}
USAGE: USAGE:
{{.Name}} {{if .Flags}}[global options] {{end}}command{{if .Flags}} [command options]{{end}} [arguments...]{{if len .Version}} {{.Name}} {{if .Flags}}[global options]{{end}}{{if .Commands}} command [command options]{{end}} [arguments...]
{{if .Version}}
VERSION: VERSION:
{{.Version}}{{end}}{{if len .Authors}} {{.Version}}
{{end}}{{if len .Authors}}
AUTHOR(S): AUTHOR(S):
{{range .Authors}}{{ . }}{{end}}{{end}}{{if .Commands}} {{range .Authors}}{{ . }}{{end}}
{{end}}{{if .Commands}}
COMMANDS: COMMANDS:
{{range .Commands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}} {{range .Commands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}}
{{end}}{{end}}{{if .Flags}} {{end}}{{end}}{{if .Flags}}
GLOBAL OPTIONS: GLOBAL OPTIONS:
{{range .Flags}}{{.}} {{range .Flags}}{{.}}
{{end}}{{end}}{{if .Copyright }} {{end}}{{end}}{{if .Copyright }}
COPYRIGHT: COPYRIGHT:
{{.Copyright}}{{end}} {{.Copyright}}
{{end}}
` `
// The text template for the command help topic. // The text template for the command help topic.