summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/xrepo/action/update-repo.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/xmake/modules/private/xrepo/action/update-repo.lua b/xmake/modules/private/xrepo/action/update-repo.lua
index 8746a91be..779b7b2e0 100644
--- a/xmake/modules/private/xrepo/action/update-repo.lua
+++ b/xmake/modules/private/xrepo/action/update-repo.lua
@@ -25,10 +25,13 @@ import("core.base.option")
function menu_options()
-- description
- local description = "Update all local repositories from remote."
+ local description = "Update the local repositories from remote."
-- menu options
- local options = {}
+ local options =
+ {
+ {nil, "name", "v", nil, "The repository name."}
+ }
-- show menu options
local function show_options()
@@ -67,10 +70,13 @@ function update_repository()
if option.get("diagnosis") then
table.insert(repo_argv, "-D")
end
+ local name = option.get("name")
+ if name then
+ table.insert(repo_argv, name)
+ end
os.vexecv(os.programfile(), repo_argv)
end
--- main entry
function main()
update_repository()
end