Skip to content

Commit

Permalink
Fix: CLI Parser error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechkral committed Feb 5, 2024
1 parent b5b60d9 commit 8259996
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cli/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}

Expand Down

0 comments on commit 8259996

Please sign in to comment.