diff options
author | mpeterv <mpeterval@gmail.com> | 2016-01-05 13:16:16 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2016-01-11 11:30:08 +0300 |
commit | f73a7d9bca18884c7f882e90b5be650ab625a485 (patch) | |
tree | 72023b0e167059cb86340faa81ca4e262b4a859e /src | |
parent | 8254cd3e69321963673e4909de4ec585adf6a706 (diff) | |
download | luarocks-f73a7d9bca18884c7f882e90b5be650ab625a485.tar.gz luarocks-f73a7d9bca18884c7f882e90b5be650ab625a485.tar.bz2 luarocks-f73a7d9bca18884c7f882e90b5be650ab625a485.zip |
Report unknown commands consistently
Now both 'luarocks foo' and 'luarocks help foo' print
'Unknown command: foo'.
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/help.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/help.lua b/src/luarocks/help.lua index 92458b2b..5a2681a3 100644 --- a/src/luarocks/help.lua +++ b/src/luarocks/help.lua | |||
@@ -111,7 +111,7 @@ function help.run(...) | |||
111 | print_section("SEE ALSO") | 111 | print_section("SEE ALSO") |
112 | util.printout("","'"..program.." help' for general options and configuration.\n") | 112 | util.printout("","'"..program.." help' for general options and configuration.\n") |
113 | else | 113 | else |
114 | return nil, "Unknown command '"..command.."'" | 114 | return nil, "Unknown command: "..command |
115 | end | 115 | end |
116 | end | 116 | end |
117 | return true | 117 | return true |