diff options
Diffstat (limited to 'src/luarocks/command_line.lua')
-rw-r--r-- | src/luarocks/command_line.lua | 7 |
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. |
3 | module("luarocks.command_line", package.seeall) | 3 | --module("luarocks.command_line", package.seeall) |
4 | local command_line = {} | ||
4 | 5 | ||
5 | local util = require("luarocks.util") | 6 | local util = require("luarocks.util") |
6 | local cfg = require("luarocks.cfg") | 7 | local 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. |
46 | function run_command(...) | 47 | function 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() |
208 | end | 209 | end |
210 | |||
211 | return command_line | ||