Do not show empty description section

main
Audrius Butkevicius 10 years ago
parent 27ecc97192
commit fcc1613bb5

@ -34,10 +34,10 @@ var CommandHelpTemplate = `NAME:
{{.Name}} - {{.Usage}}
USAGE:
command {{.Name}}{{ if .Flags }} [command options]{{ end }} [arguments...]
command {{.Name}}{{ if .Flags }} [command options]{{ end }} [arguments...]{{if .Description}}
DESCRIPTION:
{{.Description}}{{ if .Flags }}
{{.Description}}{{end}}{{ if .Flags }}
OPTIONS:
{{range .Flags}}{{.}}

Loading…
Cancel
Save