Fixed Lua 5.1 incompatibility

This commit is contained in:
mpeterv
2014-03-02 02:34:20 +04:00
parent cee3cc455a
commit 07a045d04a

View File

@@ -363,8 +363,7 @@ function Parser:add_help(param)
:action(function() :action(function()
io.stdout:write(self:get_help() .. "\r\n") io.stdout:write(self:get_help() .. "\r\n")
os.exit(0) os.exit(0)
end) end)(param)
(param)
if not help._name then if not help._name then
help "-h" "--help" help "-h" "--help"