From 1ac08d9d948807b0a457aaa59f696f5243059990 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Fri, 11 Sep 2015 18:50:00 -0400 Subject: [PATCH] UsageTemple: remove useless variable assignment --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.go b/command.go index e53dc1a..22deb48 100644 --- a/command.go +++ b/command.go @@ -248,7 +248,7 @@ func (c *Command) UsageTemplate() string { if c.HasParent() { return c.parent.UsageTemplate() } else { - return `{{ $cmd := . }}Usage:{{if .Runnable}} + return `Usage:{{if .Runnable}} {{.UseLine}}{{if .HasFlags}} [flags]{{end}}{{end}}{{if .HasSubCommands}} {{ .CommandPath}} [command]{{end}}{{if gt .Aliases 0}}