mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Change error messages for missing elements
* For arguments: "argument 'foo' is required" -> "missing argument 'foo'" * For options: "option '--foo' must be used at least 1 time" -> "missing option '--foo'"
This commit is contained in:
@@ -15,7 +15,7 @@ describe("tests related to :pparse()", function()
|
||||
parser:argument "foo"
|
||||
local ok, errmsg = parser:pparse{}
|
||||
assert.is_false(ok)
|
||||
assert.equal("argument 'foo' is required", errmsg)
|
||||
assert.equal("missing argument 'foo'", errmsg)
|
||||
end)
|
||||
|
||||
it("rethrows errors from callbacks", function()
|
||||
|
Reference in New Issue
Block a user