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.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua
index 19d04290..f9fba300 100644
--- a/src/luarocks/command_line.lua
+++ b/src/luarocks/command_line.lua
@@ -113,6 +113,13 @@ function run_command(...)
113 die("Invalid entry for --deps-mode.") 113 die("Invalid entry for --deps-mode.")
114 end 114 end
115 115
116 if flags["branch"] then
117 if flags["branch"] == true or flags["branch"] == "" then
118 die("Argument error: use --branch=<branch-name>")
119 end
120 cfg.branch = flags["branch"]
121 end
122
116 if flags["tree"] then 123 if flags["tree"] then
117 if flags["tree"] == true or flags["tree"] == "" then 124 if flags["tree"] == true or flags["tree"] == "" then
118 die("Argument error: use --tree=<path>") 125 die("Argument error: use --tree=<path>")