Skip to content

Commit f28b235

Browse files
authored
Add missing fragment specifier to a clap_app! rule.
1 parent cb81ce5 commit f28b235

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)