Compatibility with strict.lua and other checkers.

This commit is contained in:
Stefano Peluchetti
2014-08-01 18:38:58 +09:00
parent d1386c1d96
commit e8b20d9bfc

View File

@@ -604,7 +604,8 @@ local function plural(x)
return "s" return "s"
end end
local default_cmdline = arg or {} -- Compatibility with strict.lua and other checkers:
local default_cmdline = rawget(_G, "arg") or {}
function Parser:_parse(args, errhandler) function Parser:_parse(args, errhandler)
args = args or default_cmdline args = args or default_cmdline