diff options
| author | ruki <[email protected]> | 2022-11-24 23:44:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-11-24 23:44:04 +0800 |
| commit | a6e149fc533f1ffb7cd7b4bd663caa7bb6b0be35 (patch) | |
| tree | 415e6a265dbb07b9655cf0cc684fd00ad75e8f49 | |
| parent | 2d968d48f29a697ef1d8e991e7e0c29d92e33c06 (diff) | |
add xmake g --check
| -rw-r--r-- | xmake/actions/global/main.lua | 2 | ||||
| -rw-r--r-- | 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." |
