mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Minor change in an error message
This commit is contained in:
@@ -51,7 +51,7 @@ describe("tests related to commands", function()
|
||||
assert.same({}, args)
|
||||
|
||||
parser:require_command(true)
|
||||
assert.has_error(function() parser:parse{} end, "command is required")
|
||||
assert.has_error(function() parser:parse{} end, "a command is required")
|
||||
end)
|
||||
|
||||
it("Detects wrong commands", function()
|
||||
|
@@ -746,7 +746,7 @@ function Parser:parse(args)
|
||||
end
|
||||
|
||||
if parser._require_command and #commands > 0 then
|
||||
parser:error("command is required")
|
||||
parser:error("a command is required")
|
||||
end
|
||||
|
||||
for _, option in ipairs(options) do
|
||||
|
Reference in New Issue
Block a user