minor: Add commands into donut template

master
Harshavardhana 10 years ago
parent d70695fc6f
commit f15375426a
  1. 5
      cmd/donut/main.go

@ -171,7 +171,10 @@ func main() {
USAGE: USAGE:
{{.Name}} {{if .Flags}}[global flags] {{end}}command{{if .Flags}} [command flags]{{end}} [arguments...] {{.Name}} {{if .Flags}}[global flags] {{end}}command{{if .Flags}} [command flags]{{end}} [arguments...]
{{if .Flags}}
COMMANDS:
{{range .Commands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}}
{{end}}{{if .Flags}}
GLOBAL FLAGS: GLOBAL FLAGS:
{{range .Flags}}{{.}} {{range .Flags}}{{.}}
{{end}}{{end}} {{end}}{{end}}

Loading…
Cancel
Save