From d0d848ad3bd364993e4c8f933c14075f4c91b126 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 23 Sep 2010 15:47:02 -0300 Subject: New option for ~/.luarocks/config.lua: "local_by_default", which implies --local in all commands (useful for my test setup here). --- src/luarocks/command_line.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua index 71ded87d..8b74a65f 100644 --- a/src/luarocks/command_line.lua +++ b/src/luarocks/command_line.lua @@ -88,6 +88,10 @@ function run_command(...) end command = command:gsub("-", "_") + if cfg.local_by_default then + flags["local"] = true + end + if flags["to"] then if flags["to"] == true then die("Argument error: use --to=") -- cgit v1.2.3-55-g6feb