mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Improved error message
Report '1 times' as '1 time'
This commit is contained in:
@@ -243,7 +243,7 @@ describe("tests related to options", function()
|
||||
count = 1,
|
||||
overwrite = false
|
||||
})
|
||||
assert.has_error(function() parser:parse{"-qq"} end, "option '-q' must be used at most 1 times")
|
||||
assert.has_error(function() parser:parse{"-qq"} end, "option '-q' must be used at most 1 time")
|
||||
end)
|
||||
|
||||
it("handles too few invocations correctly", function()
|
||||
|
Reference in New Issue
Block a user