Do not show empty description section

This commit is contained in:
Audrius Butkevicius 2014-07-26 21:53:05 +01:00
parent 27ecc97192
commit fcc1613bb5

View File

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