Do not show empty description section
This commit is contained in:
parent
27ecc97192
commit
fcc1613bb5
4
help.go
4
help.go
@ -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…
Reference in New Issue
Block a user