mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Fixed Lua 5.1 incompatibility
This commit is contained in:
@@ -363,8 +363,7 @@ function Parser:add_help(param)
|
||||
:action(function()
|
||||
io.stdout:write(self:get_help() .. "\r\n")
|
||||
os.exit(0)
|
||||
end)
|
||||
(param)
|
||||
end)(param)
|
||||
|
||||
if not help._name then
|
||||
help "-h" "--help"
|
||||
|
Reference in New Issue
Block a user