Skip to content

Commit 244424d

Browse files
committed
fix: override help command of the root command
1 parent 01d1061 commit 244424d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/commands/root.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ func newRootCommand(info BuildInfo) *rootCommand {
6666
newCacheCommand().cmd,
6767
newConfigCommand(log, config.NewDefault()).cmd,
6868
newVersionCommand(info).cmd,
69-
newHelpCommand(log, config.NewDefault()).cmd,
7069
)
7170

71+
rootCmd.SetHelpCommand(newHelpCommand(log, config.NewDefault()).cmd)
72+
7273
c.log = log
7374
c.cmd = rootCmd
7475

0 commit comments

Comments
 (0)