mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Fix some line length warnings
This commit is contained in:
@@ -40,8 +40,12 @@ describe("tests related to mutexes", function()
|
||||
:description "Print additional debug information. "
|
||||
)
|
||||
|
||||
assert.has_error(function() parser:parse{"-qv"} end, "option '-v' can not be used together with option '-q'")
|
||||
assert.has_error(function() parser:parse{"-v", "--quiet"} end, "option '--quiet' can not be used together with option '-v'")
|
||||
assert.has_error(function()
|
||||
parser:parse{"-qv"}
|
||||
end, "option '-v' can not be used together with option '-q'")
|
||||
assert.has_error(function()
|
||||
parser:parse{"-v", "--quiet"}
|
||||
end, "option '--quiet' can not be used together with option '-v'")
|
||||
end)
|
||||
|
||||
it("handles multiple mutexes", function()
|
||||
@@ -75,6 +79,8 @@ describe("tests related to mutexes", function()
|
||||
|
||||
local args = parser:parse{"install", "-l"}
|
||||
assert.same({install = true, ["local"] = true}, args)
|
||||
assert.has_error(function() parser:parse{"install", "-qlv"} end, "option '-v' can not be used together with option '-q'")
|
||||
assert.has_error(function()
|
||||
parser:parse{"install", "-qlv"}
|
||||
end, "option '-v' can not be used together with option '-q'")
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user