From ceccaf86c4049256c4ed360b6614c7ec4ecaa0c6 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Sat, 18 Feb 2017 11:52:31 -0500 Subject: [PATCH] Clap app fix (#859) * fix(clap_app!): fixes a critical bug of a missing fragmet specifier when using tags * chore: increase version --- CHANGELOG.md | 10 ++++++++++ Cargo.toml | 2 +- src/macros.rs | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 481d7359eec..9600180601e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ + +### v1.5.6 (2017-02-18) + + +#### Bug Fixes + +* **clap_app!:** fixes a critical bug of a missing fragmet specifier when using tags ([39647f49](https://github.com/kbknapp/clap-rs/commit/39647f495ae5402ae39569ef2ca91cfca1875bca)) + + + ### v1.5.5 (2016-01-04) diff --git a/Cargo.toml b/Cargo.toml index cc6365791b8..3eed79e03f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "clap" -version = "1.5.5" +version = "1.5.6" authors = ["Kevin K. "] exclude = ["examples/*", "clap-tests/*", "tests/*", "benches/*", "*.png", "clap-perf/*"] description = "A simple to use, efficient, and full featured Command Line Argument Parser" diff --git a/src/macros.rs b/src/macros.rs index 885c1185e90..aa984b50d4b 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -708,7 +708,7 @@ macro_rules! clap_app { clap_app!{ @arg ($arg) $modes +required $($tail)* } }; // !foo -> .foo(false) - (@arg ($arg:expr) $modes:tt !$ident $($tail:tt)*) => { + (@arg ($arg:expr) $modes:tt !$ident:ident $($tail:tt)*) => { clap_app!{ @arg ($arg.$ident(false)) $modes $($tail)* } }; // foo -> .foo(true)