Skip to content

Commit a17a631

Browse files
committed
Update root CLI command check
1 parent 5cf2ba1 commit a17a631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func updateRootUsage() {
103103
usage := rootCmd.UsageString()
104104

105105
rootCmd.SetUsageFunc(func(cmd *cobra.Command) error {
106-
if cmd.Use != "cortex" {
106+
if cmd != rootCmd {
107107
return defaultUsageFunc(cmd)
108108
}
109109

0 commit comments

Comments
 (0)