Skip to content

Commit

Permalink
add xmake g --check
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 24, 2022
1 parent 2d968d4 commit a6e149f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xmake/actions/global/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion xmake/actions/global/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit a6e149f

Please sign in to comment.