From 384c059f4b9ff2d5541341b2b03cc435c9f278e4 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}} ` }