Make add_help_command a Parser method

This commit is contained in:
Paul Ouellette
2019-06-10 15:56:51 -04:00
parent e30288c54a
commit 4509f8f29d
3 changed files with 44 additions and 49 deletions

View File

@@ -1,9 +1,10 @@
#!/usr/bin/env lua
local Parser = require "argparse"
local parser = Parser()
:description "A testing program."
:add_help_command(true)
:add_help_command()
:require_command(false)
parser:argument "input"