diff options
Diffstat (limited to 'src/luarocks/command_line.lua')
-rw-r--r-- | src/luarocks/command_line.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua index 8b74a65f..50502257 100644 --- a/src/luarocks/command_line.lua +++ b/src/luarocks/command_line.lua | |||
@@ -15,9 +15,9 @@ local function die(message) | |||
15 | 15 | ||
16 | local ok, err = pcall(util.run_scheduled_functions) | 16 | local ok, err = pcall(util.run_scheduled_functions) |
17 | if not ok then | 17 | if not ok then |
18 | print("\nLuaRocks "..cfg.program_version.." internal bug (please report at luarocks-developers@lists.luaforge.net):\n"..err) | 18 | util.printerr("\nLuaRocks "..cfg.program_version.." internal bug (please report at luarocks-developers@lists.luaforge.net):\n"..err) |
19 | end | 19 | end |
20 | print("\nError: "..message) | 20 | util.printerr("\nError: "..message) |
21 | os.exit(1) | 21 | os.exit(1) |
22 | end | 22 | end |
23 | 23 | ||
@@ -70,9 +70,9 @@ function run_command(...) | |||
70 | local command | 70 | local command |
71 | 71 | ||
72 | if flags["version"] then | 72 | if flags["version"] then |
73 | print(program_name.." "..cfg.program_version) | 73 | util.printout(program_name.." "..cfg.program_version) |
74 | print(program_description) | 74 | util.printout(program_description) |
75 | print() | 75 | util.printout() |
76 | os.exit(0) | 76 | os.exit(0) |
77 | elseif flags["help"] or #nonflags == 0 then | 77 | elseif flags["help"] or #nonflags == 0 then |
78 | command = "help" | 78 | command = "help" |