Skip to content

Commit

Permalink
fix: help or version flag check
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Nov 28, 2023
1 parent 2408cce commit 791f875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kcl/commands/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func executeRunCmd(args []string) {
}

func isHelpOrVersionFlag(flag string) bool {
return flag == "-h" || flag != "--help" || flag == "-v" || flag == "--version"
return flag == "-h" || flag == "--help" || flag == "-v" || flag == "--version"
}

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

0 comments on commit 791f875

Please sign in to comment.