Skip to content

0.7.0

Choose a tag to compare

@p-ouellette p-ouellette released this 15 Aug 03:54
· 10 commits to master since this release
0.7.0
6f28a24

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.