Fixed the charset of the current parser being used.

Now the global set of all control characters of all (sub)commands is used.
This commit is contained in:
mpeterv
2014-02-09 00:18:00 +04:00
parent c26d41228d
commit e7aa042004
3 changed files with 36 additions and 24 deletions

View File

@@ -92,14 +92,6 @@ describe("tests related to positional arguments", function()
assert.has_error(function() parser:parse{"bar", "baz"} end, "too many arguments")
end)
it("handles sudden option correctly", function()
local parser = argparse.parser()
:add_help(false)
parser:argument "foo"
assert.has_error(function() parser:parse{"-q"} end, "unknown option '-q'")
end)
it("handles too few arguments with one argument correctly", function()
local parser = argparse.parser()
parser:argument "foo"