From b02db3241e2f351d6cab8b376b1ba1b77b791ec1 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Dec 2023 00:45:03 +0800 Subject: fix version argument #4495 --- xmake/core/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1