remove hard-coded "[flags]" in UseLine

This commit is contained in:
Di Xu 2017-11-19 13:10:10 +08:00
parent d6948b782c
commit 16823c44f6

View file

@ -994,9 +994,6 @@ func (c *Command) UseLine() string {
} else { } else {
useline = c.Use useline = c.Use
} }
if c.HasAvailableFlags() && !strings.Contains(useline, "[flags]") {
useline += " [flags]"
}
return useline return useline
} }