mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
Merge 16823c44f6
into d6948b782c
This commit is contained in:
commit
27d3764e77
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…
Add table
Reference in a new issue