Merge pull request #781 from harshavardhana/pr_out_minor_add_commands_into_donut_template

minor: Add commands into donut template
master
Harshavardhana 9 years ago
commit de74ae9d59
  1. 5
      cmd/donut/main.go

@ -171,7 +171,10 @@ func main() {
USAGE:
{{.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:
{{range .Flags}}{{.}}
{{end}}{{end}}

Loading…
Cancel
Save