From 211e9d7ab31e86dd1d0eba5eaf96261ecc795b8d Mon Sep 17 00:00:00 2001 From: Kevin K Date: Mon, 7 Sep 2015 21:37:17 -0400 Subject: [PATCH] chore: increase version --- CHANGELOG.md | 20 ++++++++++++++++++++ Cargo.toml | 2 +- README.md | 14 +++++++++----- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffb21292..a73677c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ + +### v1.3.2 (2015-09-08) + + +#### Documentation + +* fixed ClapErrorType docs ([dd057843](https://github.com/kbknapp/clap-rs/commit/dd05784327fa070eb6ce5ce89a8507e011d8db94)) +* **ClapErrorType:** changed examples content ([b9ca2616](https://github.com/kbknapp/clap-rs/commit/b9ca261634b89613bbf3d98fd74d55cefbb31a8c)) + +#### Bug Fixes + +* fixes a bug where the help subcommand wasn't overridable ([94003db4](https://github.com/kbknapp/clap-rs/commit/94003db4b5eebe552ca337521c1c001295822745)) + +#### Features + +* adds abiltiy not consume self when parsing matches and/or exit on help ([94003db4](https://github.com/kbknapp/clap-rs/commit/94003db4b5eebe552ca337521c1c001295822745)) +* **App:** Added ability for users to handle errors themselves ([934e6fbb](https://github.com/kbknapp/clap-rs/commit/934e6fbb643b2385efc23444fe6fce31494dc288)) + + + ### v1.3.1 (2015-09-04) diff --git a/Cargo.toml b/Cargo.toml index 5902ca32..6e1d8cd3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "clap" -version = "1.3.1" +version = "1.3.2" authors = ["Kevin K. "] exclude = ["examples/*", "clap-tests/*", "tests/*", "benches/*", "clap.png"] description = "A simple to use, efficient, and full featured Command Line Argument Parser" diff --git a/README.md b/README.md index b1a99bca..e2c8cee3 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,11 @@ It is a simple to use, efficient, and full featured library for parsing command ## What's New -If you're already familiar with `clap` but just want to see some new highlights as of **1.3.0** +If you're already familiar with `clap` but just want to see some new highlights as of **1.3.2** +* Code Coverage has now been added, and is slowly going up (See the badge at the top of this page)! Thanks to [Vinatorul](https://github.com/vinatorul) for the leg work! +* You can now call `get_matches_*` to *not* consume the `App` struct (See those ending in `_borrow`) +* You can now handle get a `Result` from the `get_matches_*` methods in order to handle errors if you so choose (see those ending in `_safe`) * You can now **build a CLI from YAML** - This keeps your Rust source nice and tidy :) Full details can be found in [examples/17_yaml.rs](https://github.com/kbknapp/clap-rs/blob/master/examples/17_yaml.rs) * A very minor "breaking" change which should affect very, very few people. If you're using `ArgGroup::*_all`, they no longer take a `Vec<&str>`, but now takes a far more versatile `&[&str]`. If you were using code such as `.add_all(vec!["arg1", "arg2"])` you only need to change the `vec!`->`&` and it should work again. This also has the added benefit of not needlessly allocating the `Vec`! * Some other minor bug fixes and improvements @@ -475,6 +478,11 @@ There are a few goals of `clap` that I'd like to maintain throughout contributio Although I do my best to keep breaking changes to a minimum, being that this a sub 1.0 library, there are breaking changes from time to time in order to support better features or implementation. For the full details see the changelog.md +* As of 1.3.0 + - `ArgGroup::add_all` now takes `&[&str]` instead of a `Vec<&str>` + - `ArgGroup::requires_all` now takes `&[&str]` instead of a `Vec<&str>` + - `ArgGroup::conflicts_with_all` now takes `&[&str]` instead of a `Vec<&str>` + * As of 0.11.0: The default short flag for `version` has changed from `-v` to `-V` (Uppercase). Although you can also now override the short flag for `help` and `version` using `App::help_short()` and `App::version_short()` * As of 0.7.0 - `Arg::possible_values()`, `Arg::value_names()`, `Arg::requires_all()`, `Arg::mutually_excludes_all()` [deprecated], `Arg::conflicts_with_all()` @@ -491,10 +499,6 @@ Although I do my best to keep breaking changes to a minimum, being that this a s Old method names will be left around for some time. -* As of 1.3.0 - - `ArgGroup::add_all` now takes `&[&str]` instead of a `Vec<&str>` - - `ArgGroup::requires_all` now takes `&[&str]` instead of a `Vec<&str>` - - `ArgGroup::conflicts_with_all` now takes `&[&str]` instead of a `Vec<&str>` * As of 1.2.0 (Will **not** be removed until 2.x) - `App::subcommands_negate_reqs(bool)` -> `AppSettings::SubcommandsNegateReqs` passed to `App::setting()` - `App::subcommand_required(bool)` -> `AppSettings::SubcommandRequired` passed to `App::setting()`