diff --git a/src/cli/parser.rs b/src/cli/parser.rs index cfbbbad..b6300e9 100644 --- a/src/cli/parser.rs +++ b/src/cli/parser.rs @@ -298,8 +298,10 @@ impl Parser { (flag_def.parse_fn)(&mut self)?; if self.current_flag.eq_value.is_some() { - // FIXME: wrong err msg: - bail!("Unrecognized flag: {}", self.take_current_flag().flag); + bail!( + "Flag doesn't take a value: {}", + self.take_current_flag().flag + ); } }