We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f51773b commit 6a044a7Copy full SHA for 6a044a7
src/cli.rs
@@ -211,14 +211,10 @@ fn readable_pico_error(error: pico::Error) -> Error {
211
format!("'{}' isn't a valid value ({})", value, cause)
212
}
213
Error::OptionWithoutAValue(_) => "missing value".to_string(),
214
- Error::UnusedArgsLeft(left) => {
215
- let plural = if left.len() > 1 { "were" } else { "was" };
216
- format!(
217
- "error parsing arguments: {} {} not recognized",
218
- left.join(", "),
219
- plural
220
- )
221
- }
+ Error::UnusedArgsLeft(left) => format!(
+ "error, unrecognized arguments: {}",
+ left.join(", ")
+ ),
222
Error::NonUtf8Argument => "not a valid utf8 value".to_string(),
223
})
224
0 commit comments