mirror of
https://github.com/yudai/gotty.git
synced 2025-09-21 21:40:49 +02:00
Isolate help message template
This commit is contained in:
parent
25627da86f
commit
8758dc0541
2 changed files with 21 additions and 18 deletions
19
help.go
Normal file
19
help.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
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}}
|
||||
`
|
Loading…
Add table
Add a link
Reference in a new issue