Skip to content

Commit 791f875

Browse files
committed
fix: help or version flag check
Signed-off-by: peefy <[email protected]>
1 parent 2408cce commit 791f875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kcl/commands/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func executeRunCmd(args []string) {
2121
}
2222

2323
func isHelpOrVersionFlag(flag string) bool {
24-
return flag == "-h" || flag != "--help" || flag == "-v" || flag == "--version"
24+
return flag == "-h" || flag == "--help" || flag == "-v" || flag == "--version"
2525
}
2626

2727
func bootstrapCmdPlugin(cmd *cobra.Command, pluginHandler plugin.PluginHandler) {

0 commit comments

Comments
 (0)