Skip to content

Commit

Permalink
Merge pull request #18 from crazy-max/fix-yaml-longdesc
Browse files Browse the repository at this point in the history
yaml: root command should also be removed for non-plugin (cli)
  • Loading branch information
thaJeztah committed Jan 19, 2022
2 parents 6f00061 + f468d10 commit 77df2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clidocstool_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
}
Expand Down

0 comments on commit 77df2af

Please sign in to comment.