Skip to content

Commit afd55dd

Browse files
committed
Auto merge of #857 - eddyb:patch-1, r=kbknapp
Add missing fragment specifier to a clap_app! rule. Introduced in #238, this bug affects both `clap` `1.*` and `2.*` and was found by rust-lang/rust#39419. I'd suggest releasing not only `2.20.5`, but also `1.5.6`, to cover downstream crates still on `1.5.5`.
2 parents cb81ce5 + f28b235 commit afd55dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ macro_rules! clap_app {
684684
clap_app!{ @arg ($arg) $modes +required $($tail)* }
685685
};
686686
// !foo -> .foo(false)
687-
(@arg ($arg:expr) $modes:tt !$ident $($tail:tt)*) => {
687+
(@arg ($arg:expr) $modes:tt !$ident:ident $($tail:tt)*) => {
688688
clap_app!{ @arg ($arg.$ident(false)) $modes $($tail)* }
689689
};
690690
// +foo -> .foo(true)

0 commit comments

Comments
 (0)