Skip to content

Commit

Permalink
0.7.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ouellette committed Aug 15, 2019
1 parent f72c10d commit 6f28a24
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 7 deletions.
28 changes: 26 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
# Changelog

## 0.7.0 (2019-08-14)

The repository has been moved to a [new location](https://github.com/luarocks/argparse).

### 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.

## 0.6.0 (2018-04-13)

### New features

* An array of functions can now be as the value of `converter` property,
so that multi-argumnet options can use different conversion rules
* An array of functions can now be used as the value of `converter` property,
so that multi-argument options can use different conversion rules
for different arguments (#14).
* Mutexes can now include positional arguments (#11).
* Added `hidden` property for arguments, options and commands,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Argparse is a feature-rich command line parser for Lua inspired by argparse for Python.

Argparse supports positional arguments, options, flags, optional arguments, subcommands and more. Argparse automatically generates usage, help and error messages.
Argparse supports positional arguments, options, flags, optional arguments, subcommands and more. Argparse automatically generates usage, help, and error messages, and can generate shell completion scripts.

## Contents

Expand Down
2 changes: 1 addition & 1 deletion argparse-scm-2.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source = {
}
description = {
summary = "A feature-rich command-line argument parser",
detailed = "Argparse supports positional arguments, options, flags, optional arguments, subcommands and more. Argparse automatically generates usage, help and error messages.",
detailed = "Argparse supports positional arguments, options, flags, optional arguments, subcommands and more. Argparse automatically generates usage, help, and error messages, and can generate shell completion scripts.",
homepage = "https://github.com/luarocks/argparse",
license = "MIT"
}
Expand Down
4 changes: 2 additions & 2 deletions docsrc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
# built documents.
#
# The short X.Y version.
version = '0.6.0'
version = '0.7.0'
# The full version, including alpha/beta/rc tags.
release = '0.6.0'
release = '0.7.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion src/argparse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,7 @@ end

local argparse = {}

argparse.version = "0.6.0"
argparse.version = "0.7.0"

setmetatable(argparse, {__call = function(_, ...)
return Parser(default_cmdline[0]):add_help(true)(...)
Expand Down

0 comments on commit 6f28a24

Please sign in to comment.