Skip to content

Commit

Permalink
tweak unrecognized arguments error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd committed Sep 19, 2019
1 parent f51773b commit e279862
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,7 @@ fn readable_pico_error(error: pico::Error) -> Error {
}
Error::OptionWithoutAValue(_) => "missing value".to_string(),
Error::UnusedArgsLeft(left) => {
let plural = if left.len() > 1 { "were" } else { "was" };
format!(
"error parsing arguments: {} {} not recognized",
left.join(", "),
plural
)
format!("error, unrecognized arguments: {}", left.join(", "))
}
Error::NonUtf8Argument => "not a valid utf8 value".to_string(),
})
Expand Down

0 comments on commit e279862

Please sign in to comment.