From a6e149fc533f1ffb7cd7b4bd663caa7bb6b0be35 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 24 Nov 2022 23:44:04 +0800 Subject: add xmake g --check --- xmake/actions/global/main.lua | 2 +- xmake/actions/global/xmake.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xmake/actions/global/main.lua b/xmake/actions/global/main.lua index 785237e32..465c4948e 100644 --- a/xmake/actions/global/main.lua +++ b/xmake/actions/global/main.lua @@ -70,7 +70,7 @@ function main() global.save() -- clear detect cache - if option.get("clean") then + if option.get("clean") or option.get("check") then global_detectcache:clear() global_detectcache:save() end diff --git a/xmake/actions/global/xmake.lua b/xmake/actions/global/xmake.lua index b3f563a8a..508942b02 100644 --- a/xmake/actions/global/xmake.lua +++ b/xmake/actions/global/xmake.lua @@ -26,7 +26,8 @@ task("global") description = "Configure the global options for xmake.", shortname = 'g', options = { - {'c', "clean", "k" , nil , "Clean the cached configure and configure all again." }, + {'c', "clean", "k", nil , "Clean the cached user configs and detection cache."}, + {nil, "check", "k", nil , "Just ignore detection cache and force to check all, it will reserve the cached user configs."}, {nil, "menu", "k" , nil , "Configure with a menu-driven user interface." }, {category = "."}, {nil, "theme", "kv", "default" , "The theme name." -- cgit v1.3.1