mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-09 15:24:25 +00:00
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}}
|
|
`
|