Merge pull request #153 from eparis/remove-useless-assignment

UsageTemple: remove useless variable assignment
This commit is contained in:
Eric Paris 2015-09-11 18:00:59 -05:00
commit eeec8e3ce3

View File

@ -251,7 +251,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}}