UsageTemple: remove useless variable assignment

This commit is contained in:
Eric Paris 2015-09-11 18:50:00 -04:00
parent 85bb343e9c
commit 1ac08d9d94
1 changed files with 1 additions and 1 deletions

View File

@ -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}}