Commit 80d0f765 authored by Matt Baer's avatar Matt Baer
Browse files

Improve subcommand help template

Shows 'writeas' instead of generic 'command'
parent 995d73db
...@@ -171,6 +171,20 @@ func main() { ...@@ -171,6 +171,20 @@ func main() {
}, },
} }
cli.CommandHelpTemplate = `NAME:
{{.Name}} - {{.Usage}}
USAGE:
writeas {{.Name}}{{if .Flags}} [command options]{{end}} [arguments...]{{if .Description}}
DESCRIPTION:
{{.Description}}{{end}}{{if .Flags}}
OPTIONS:
{{range .Flags}}{{.}}
{{end}}{{ end }}
`
app.Run(os.Args) app.Run(os.Args)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment