From 82599964ed7c1108ba0758e8f9e668826cad3784 Mon Sep 17 00:00:00 2001 From: Vojtech Kral Date: Mon, 5 Feb 2024 23:14:13 +0100 Subject: [PATCH] Fix: CLI Parser error message --- src/cli/parser.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 + ); } }