mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user