Skip to content

Commit

Permalink
fix(macros): Add needed call for arg_enum
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 10, 2022
1 parent 9713cd9 commit 52f6939
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/macros.rs
Expand Up @@ -71,6 +71,15 @@ macro_rules! values_t_or_exit {
};
}

#[deprecated(since = "3.0.0", note = "Replaced with `ArgEnum`")]
#[doc(hidden)]
#[macro_export]
macro_rules! _clap_count_exprs {
() => { 0 };
($e:expr) => { 1 };
($e:expr, $($es:expr),+) => { 1 + $crate::_clap_count_exprs!($($es),*) };
}

/// Deprecated, replaced with [`ArgEnum`][crate::ArgEnum]
#[deprecated(since = "3.0.0", note = "Replaced with `ArgEnum`")]
#[doc(hidden)]
Expand Down

0 comments on commit 52f6939

Please sign in to comment.