Fixed options receiving arguments after --

This commit is contained in:
mpeterv
2014-03-02 12:40:16 +04:00
parent 454ef54aa3
commit fb1c14ff80
3 changed files with 49 additions and 5 deletions

View File

@@ -790,6 +790,10 @@ function Parser:_parse(args, errhandler)
plain = false
if data:sub(2, 2) == first then
if #data == 2 then
if cur_option then
close(cur_option)
end
handle_options = false
else
local equal = data:find "="