mirror of
https://github.com/spf13/cobra
synced 2024-11-25 07:07:15 +00:00
remove hard-coded "[flags]" in UseLine
This commit is contained in:
parent
d6948b782c
commit
16823c44f6
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue