Skip to content

Commit

Permalink
Fix bug with undefined flag not being the actual undefined flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rakivo committed Feb 21, 2025
1 parent 6cb067d commit 5b71824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn check_args<'a>(args: &'a [String]) -> Option::<&'a String> {
if v.as_bytes().first().map_or(false, |&b| b == b'-') &&
!FLAG_STRS.contains(&f)
{
eprintln!("undefined flag: {f}");
eprintln!("undefined flag: {v}");
if let Some(flag) = did_you_mean_flags(v) {
eprintln!("did you mean: {flag}?")
} exit(1)
Expand Down

0 comments on commit 5b71824

Please sign in to comment.