mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 11:02:20 +00:00
Compatibility with strict.lua and other checkers.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user