summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-12-14 00:45:03 +0800
committerruki <[email protected]>2023-12-14 00:45:03 +0800
commitb02db3241e2f351d6cab8b376b1ba1b77b791ec1 (patch)
treeb83203e4df48dd27ee69e865e50f8ca1575df339
parent313a7a9f7f2287939ffe7414868dc689955e216f (diff)
fix version argument #4495
-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