mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
add even more sugar
This commit is contained in:
@@ -49,7 +49,7 @@ describe("tests related to commands", function()
|
||||
local args = parser:parse{}
|
||||
assert.same({}, args)
|
||||
|
||||
parser.require_command = true
|
||||
parser:require_command(true)
|
||||
assert.has_error(function() parser:parse{} end, "command is required")
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user