mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-30 03:52:19 +00:00
Fixed exploded tests to work with busted 2.0
This commit is contained in:
@@ -941,12 +941,8 @@ function Parser:_parse(args, errhandler)
|
||||
end
|
||||
|
||||
function Parser:error(msg)
|
||||
if _TEST then
|
||||
error(msg)
|
||||
else
|
||||
io.stderr:write(("%s\r\n\r\nError: %s\r\n"):format(self:get_usage(), msg))
|
||||
os.exit(1)
|
||||
end
|
||||
io.stderr:write(("%s\r\n\r\nError: %s\r\n"):format(self:get_usage(), msg))
|
||||
os.exit(1)
|
||||
end
|
||||
|
||||
function Parser:parse(args)
|
||||
|
Reference in New Issue
Block a user