From 63a019d93ae22acb0dca6afde3c6aa62685bf718 Mon Sep 17 00:00:00 2001 From: Edgard Castro Date: Wed, 18 Mar 2015 21:50:26 -0300 Subject: [PATCH] Help uses Short message if Long is not available --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.go b/command.go index 256137f7..a7d90886 100644 --- a/command.go +++ b/command.go @@ -248,7 +248,7 @@ func (c *Command) HelpTemplate() string { if c.HasParent() { return c.parent.HelpTemplate() } else { - return `{{.Long | trim}} + return `{{with or .Long .Short }}{{. | trim}}{{end}} {{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}} ` }