Skip to content

Commit

Permalink
yaml: root command should also be removed for cli (non-plugin)
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Jan 18, 2022
1 parent 6f00061 commit f468d10
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 f468d10

Please sign in to comment.