summaryrefslogtreecommitdiff
path: root/xmake/modules/cli/extract.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/cli/extract.lua')
-rw-r--r--xmake/modules/cli/extract.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/cli/extract.lua b/xmake/modules/cli/extract.lua
index 8028106f8..e21258bc0 100644
--- a/xmake/modules/cli/extract.lua
+++ b/xmake/modules/cli/extract.lua
@@ -24,6 +24,7 @@ import("utils.archive.extract")
-- the options
local options = {
+ {'w', "workdir", "kv", nil, "Set the working directory."},
{nil, "excludes", "kv", nil, "Set the excludes patterns.",
"e.g.",
" - xmake l cli.extract --excludes=\"*/dir/*|dir/*\" -o outputdir archivefile"},
@@ -41,6 +42,7 @@ function main(...)
local opt = {}
opt.recurse = args.recurse
+ opt.curdir = args.workdir
if args.excludes then
opt.excludes = args.excludes:split("|")
end