aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/command_line.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/command_line.lua')
-rw-r--r--src/luarocks/command_line.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua
index c8026ab6..07f86a7f 100644
--- a/src/luarocks/command_line.lua
+++ b/src/luarocks/command_line.lua
@@ -131,6 +131,10 @@ function command_line.run_command(...)
131 cfg.branch = flags["branch"] 131 cfg.branch = flags["branch"]
132 end 132 end
133 133
134 if flags["project-tree"] then
135 table.insert(cfg.rocks_trees, 1, { name = "project", root = flags["project-tree"] } )
136 end
137
134 if flags["tree"] then 138 if flags["tree"] then
135 local named = false 139 local named = false
136 for _, tree in ipairs(cfg.rocks_trees) do 140 for _, tree in ipairs(cfg.rocks_trees) do