summaryrefslogtreecommitdiff
path: root/xmake/modules/cli/extract.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-21 23:45:16 +0800
committerruki <[email protected]>2024-08-21 23:45:16 +0800
commit113de5d5d6d32eaff57c502dd55ac7bc6645a8ab (patch)
tree45889b00d2966fd629c4433c3ff451da0c823123 /xmake/modules/cli/extract.lua
parentb5478ed30139e055d3d6d37a77953aea1eaf011d (diff)
add workdir arg
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