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 5e6f791
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cli/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ 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 5e6f791

Please sign in to comment.