Make add_help an actual field

This commit is contained in:
mpeterv
2014-03-02 19:27:37 +04:00
parent 8a30eb331c
commit b4c51e84de
2 changed files with 28 additions and 31 deletions

View File

@@ -23,7 +23,7 @@ describe("tests related to help message generation", function()
it("uses custom help option", function()
local parser = Parser "foo"
:add_help {name = "/?"}
:add_help "/?"
assert.equal(table.concat({
"Usage: foo [/?]",
"",