Minor change in an error message

This commit is contained in:
mpeterv
2014-02-18 14:39:32 +04:00
parent 07af666206
commit 5b96416ada
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -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