Skip to content

Commit 77df2af

Browse files
authored
Merge pull request #18 from crazy-max/fix-yaml-longdesc
yaml: root command should also be removed for non-plugin (cli)
2 parents 6f00061 + f468d10 commit 77df2af

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)