Merge pull request #781 from harshavardhana/pr_out_minor_add_commands_into_donut_template

minor: Add commands into donut template
This commit is contained in:
Harshavardhana 2015-07-28 19:42:19 -07:00
commit de74ae9d59

View File

@ -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}}