mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
fix(value_t_or_exit): fixes typo which causes value_t_or_exit to return a Result
This commit is contained in:
parent
f86a183e32
commit
ee96baffd3
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ macro_rules! value_t {
|
|||
#[macro_export]
|
||||
macro_rules! value_t_or_exit {
|
||||
($m:ident, $v:expr, $t:ty) => {
|
||||
value_t!($m.value_of($v), $t)
|
||||
value_t_or_exit!($m.value_of($v), $t)
|
||||
};
|
||||
($m:ident.value_of($v:expr), $t:ty) => {
|
||||
if let Some(v) = $m.value_of($v) {
|
||||
|
|
Loading…
Reference in a new issue