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}}
|
{{.Name}} - {{.Usage}}
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
command {{.Name}}{{ if .Flags }} [command options]{{ end }} [arguments...]
|
command {{.Name}}{{ if .Flags }} [command options]{{ end }} [arguments...]{{if .Description}}
|
||||||
|
|
||||||
DESCRIPTION:
|
DESCRIPTION:
|
||||||
{{.Description}}{{ if .Flags }}
|
{{.Description}}{{end}}{{ if .Flags }}
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
{{range .Flags}}{{.}}
|
{{range .Flags}}{{.}}
|
||||||
|
Loading…
Reference in New Issue
Block a user