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, 5 insertions, 2 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua
index 1c29aa77..54d64787 100644
--- a/src/luarocks/command_line.lua
+++ b/src/luarocks/command_line.lua
@@ -1,6 +1,7 @@
1 1
2--- Functions for command-line scripts. 2--- Functions for command-line scripts.
3module("luarocks.command_line", package.seeall) 3--module("luarocks.command_line", package.seeall)
4local command_line = {}
4 5
5local util = require("luarocks.util") 6local util = require("luarocks.util")
6local cfg = require("luarocks.cfg") 7local cfg = require("luarocks.cfg")
@@ -43,7 +44,7 @@ end
43-- Uses the global table "commands", which contains 44-- Uses the global table "commands", which contains
44-- the loaded modules representing commands. 45-- the loaded modules representing commands.
45-- @param ... string: Arguments given on the command-line. 46-- @param ... string: Arguments given on the command-line.
46function run_command(...) 47function command_line.run_command(...)
47 local args = {...} 48 local args = {...}
48 local cmdline_vars = {} 49 local cmdline_vars = {}
49 for i = #args, 1, -1 do 50 for i = #args, 1, -1 do
@@ -206,3 +207,5 @@ function run_command(...)
206 end 207 end
207 util.run_scheduled_functions() 208 util.run_scheduled_functions()
208end 209end
210
211return command_line