Releases: luarocks/argparse
Releases · luarocks/argparse
0.7.1
0.7.0
New features
- Added support for generating shell completion scripts for Bash, Zsh, and Fish using the Parser methods
:get_bash_complete(),:get_zsh_complete(), and:get_fish_complete(). The Parser methods:add_complete()and:add_complete_command()add a--completionoption orcompletioncommand to the parser. - Added
:add_help_command()method to Parser and Command objects. The help command shows help for the specified subcommand. - Added
choicesoption and argument property for specifying a set of acceptable values for the argument. - Added
summarycommand property for specifying the description shown in the parent parser's help message.
Improvements
- The location of the help flag in usage and help messages is now determined by when it is added to the parser, rather than always being the last option. By default it is now the first option.