mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
parent
e0c9619c27
commit
cf5c95862e
2 changed files with 3 additions and 3 deletions
|
@ -337,7 +337,7 @@ fn write_dynamic_context(
|
|||
let were_provided = singular_or_plural(*actual_num_values as usize);
|
||||
let _ = write!(
|
||||
styled,
|
||||
"{}{min_values}{} more values required by '{}{invalid_arg}{}'; only {}{actual_num_values}{}{were_provided}",
|
||||
"{}{min_values}{} values required by '{}{invalid_arg}{}'; only {}{actual_num_values}{}{were_provided}",
|
||||
valid.render(),
|
||||
valid.render_reset(),
|
||||
literal.render(),
|
||||
|
|
|
@ -259,7 +259,7 @@ fn option_min_less() {
|
|||
assert_eq!(err.kind(), ErrorKind::TooFewValues);
|
||||
#[cfg(feature = "error-context")]
|
||||
assert_data_eq!(err.to_string(), str![[r#"
|
||||
error: 3 more values required by '-o <option> <option> <option>...'; only 2 were provided
|
||||
error: 3 values required by '-o <option> <option> <option>...'; only 2 were provided
|
||||
|
||||
Usage: multiple_values [OPTIONS]
|
||||
|
||||
|
@ -603,7 +603,7 @@ fn positional_min_less() {
|
|||
assert_eq!(err.kind(), ErrorKind::TooFewValues);
|
||||
#[cfg(feature = "error-context")]
|
||||
assert_data_eq!(err.to_string(), str![[r#"
|
||||
error: 3 more values required by '[pos] [pos] [pos]...'; only 2 were provided
|
||||
error: 3 values required by '[pos] [pos] [pos]...'; only 2 were provided
|
||||
|
||||
Usage: myprog [pos] [pos] [pos]...
|
||||
|
||||
|
|
Loading…
Reference in a new issue