summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index 796a69b44..db284c431 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -65,7 +65,7 @@ function main._show_help()
if option.get("help") then
option.show_menu(option.taskname())
return true
- elseif option.get("version") then
+ elseif option.get("version") and not option.taskname() then
if menu.title then
utils.cprint(menu.title)
end