From fcc1613bb54edd49d722d99b553b470638bb8e71 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Sat, 26 Jul 2014 21:53:05 +0100 Subject: [PATCH] Do not show empty description section --- help.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/help.go b/help.go index ccca036..85af1d9 100644 --- a/help.go +++ b/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}}{{.}}