Added help message generation; Improved optional arguments handling.

This commit is contained in:
mpeterv
2014-01-26 15:20:42 +04:00
parent d279429896
commit 404ec5213a
5 changed files with 116 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ describe("tests related to commands", function()
it("switches context properly", function()
local parser = argparse.parser "name"
:add_help(false)
local install = parser:command "install"
install:flag "-q" "--quiet"