diff options
Diffstat (limited to 'src/luarocks/command_line.lua')
-rw-r--r-- | src/luarocks/command_line.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua index 9e499fc2..d16ef8e2 100644 --- a/src/luarocks/command_line.lua +++ b/src/luarocks/command_line.lua | |||
@@ -8,6 +8,8 @@ local path = require("luarocks.path") | |||
8 | local dir = require("luarocks.dir") | 8 | local dir = require("luarocks.dir") |
9 | local deps = require("luarocks.deps") | 9 | local deps = require("luarocks.deps") |
10 | 10 | ||
11 | local program = util.this_program("luarocks") | ||
12 | |||
11 | --- Display an error message and exit. | 13 | --- Display an error message and exit. |
12 | -- @param message string: The error message. | 14 | -- @param message string: The error message. |
13 | local function die(message) | 15 | local function die(message) |
@@ -60,7 +62,7 @@ function run_command(...) | |||
60 | local command | 62 | local command |
61 | 63 | ||
62 | if flags["version"] then | 64 | if flags["version"] then |
63 | util.printout(program_name.." "..cfg.program_version) | 65 | util.printout(program.." "..cfg.program_version) |
64 | util.printout(program_description) | 66 | util.printout(program_description) |
65 | util.printout() | 67 | util.printout() |
66 | os.exit(0) | 68 | os.exit(0) |