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()
|
: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"
|
||||||
|
Reference in New Issue
Block a user