More description error when no programs are specified

This commit is contained in:
Peter Melnichenko 2018-08-18 11:31:29 +03:00
parent 15388ec7b4
commit 0b33cd59fc

View File

@ -2075,7 +2075,7 @@ def main(argv=None):
global opts
opts = parser.parse_args(argv)
if not opts.lua and not opts.luajit and not opts.luarocks and not opts.show:
parser.error("nothing to do")
parser.error("a version of Lua, LuaJIT, or LuaRocks needs to be specified unless --show is used")
if opts.lua and opts.luajit:
parser.error("can't install both PUC-Rio Lua and LuaJIT")