yaml: root command should also be removed for cli (non-plugin)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
Родитель
6f00061a33
Коммит
f468d10fef
|
@ -367,7 +367,7 @@ func (c *Client) loadLongDescription(parentCmd *cobra.Command) error {
|
|||
}
|
||||
}
|
||||
name := cmd.CommandPath()
|
||||
if i := strings.Index(name, " "); c.plugin && i >= 0 {
|
||||
if i := strings.Index(name, " "); i >= 0 {
|
||||
// remove root command / binary name
|
||||
name = name[i+1:]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче