Skip to content

Commit 5860b8b

Browse files
committed
Fix help command for newest Cobra
1 parent 450b17a commit 5860b8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/search.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ func performCommand(cmd *cobra.Command, args []string) error {
158158
}
159159
} else {
160160
// Don't return an error, help screen is more appropriate.
161-
cmd.Help()
161+
help := cmd.HelpFunc()
162+
help(cmd, args)
162163
}
163164

164165
return nil

0 commit comments

Comments
 (0)