20 lines
329 B
Go
20 lines
329 B
Go
package main
|
|
|
|
var helpTemplate = `NAME:
|
|
{{.Name}} - {{.Usage}}
|
|
|
|
USAGE:
|
|
{{.Name}} [options] <command> [<arguments...>]
|
|
|
|
VERSION:
|
|
{{.Version}}{{if or .Author .Email}}
|
|
|
|
AUTHOR:{{if .Author}}
|
|
{{.Author}}{{if .Email}} - <{{.Email}}>{{end}}{{else}}
|
|
{{.Email}}{{end}}{{end}}
|
|
|
|
OPTIONS:
|
|
{{range .Flags}}{{.}}
|
|
{{end}}
|
|
`
|