Skip to content

Commit

Permalink
Add missing fragment specifier to a clap_app! rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb authored Feb 18, 2017
1 parent cb81ce5 commit f28b235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,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)
Expand Down

0 comments on commit f28b235

Please sign in to comment.