Skip to content

Commit f468d10

Browse files
committed
yaml: root command should also be removed for cli (non-plugin)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
1 parent 6f00061 commit f468d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clidocstool_yaml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func (c *Client) loadLongDescription(parentCmd *cobra.Command) error {
367367
}
368368
}
369369
name := cmd.CommandPath()
370-
if i := strings.Index(name, " "); c.plugin && i >= 0 {
370+
if i := strings.Index(name, " "); i >= 0 {
371371
// remove root command / binary name
372372
name = name[i+1:]
373373
}

0 commit comments

Comments
 (0)