diff --git a/command.go b/command.go index 944e0d2..96e14c4 100644 --- a/command.go +++ b/command.go @@ -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}}