Skip to content

Releases: luarocks/argparse

0.7.1

08 Jul 01:25
0.7.1
27967d7
Compare
Choose a tag to compare

Tested with Lua 5.4

New features

  • Hidden aliases can be added to an option or command by setting the
    hidden_name property

0.7.0

15 Aug 03:54
0.7.0
6f28a24
Compare
Choose a tag to compare

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 --completion option or completion command to the parser.
  • Added :add_help_command() method to Parser and Command objects. The help command shows help for the specified subcommand.
  • Added choices option and argument property for specifying a set of acceptable values for the argument.
  • Added summary command 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.