mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
Merge pull request #4384 from epage/consistent
fix(error): Be consistent in puncutation
This commit is contained in:
commit
0f6ef3003d
3 changed files with 3 additions and 4 deletions
|
@ -149,7 +149,7 @@ fn write_dynamic_context(error: &crate::error::Error, styled: &mut StyledStr) ->
|
|||
if let Some(ContextValue::String(invalid_arg)) = invalid_arg {
|
||||
styled.none("Equal sign is needed when assigning values to '");
|
||||
styled.warning(invalid_arg);
|
||||
styled.none("'.");
|
||||
styled.none("'");
|
||||
true
|
||||
} else {
|
||||
false
|
||||
|
|
|
@ -118,7 +118,7 @@ fn no_empty_values_without_equals_but_requires_equals() {
|
|||
assert_eq!(m.unwrap_err().kind(), ErrorKind::NoEquals);
|
||||
|
||||
static NO_EUQALS_ERROR: &str =
|
||||
"error: Equal sign is needed when assigning values to '--config=<config>'.
|
||||
"error: Equal sign is needed when assigning values to '--config=<config>'
|
||||
|
||||
Usage: config [OPTIONS]
|
||||
|
||||
|
|
|
@ -21,8 +21,7 @@ fn require_equals_fail() {
|
|||
#[test]
|
||||
#[cfg(feature = "error-context")]
|
||||
fn require_equals_fail_message() {
|
||||
static NO_EQUALS: &str =
|
||||
"error: Equal sign is needed when assigning values to '--config=<cfg>'.
|
||||
static NO_EQUALS: &str = "error: Equal sign is needed when assigning values to '--config=<cfg>'
|
||||
|
||||
Usage: prog [OPTIONS]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue