summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/global/main.lua2
-rw-r--r--xmake/actions/global/xmake.lua3
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."