diff --git a/clap_builder/src/error/format.rs b/clap_builder/src/error/format.rs index 7af1fd0c0c0..6023b5c53ae 100644 --- a/clap_builder/src/error/format.rs +++ b/clap_builder/src/error/format.rs @@ -99,7 +99,7 @@ impl ErrorFormatter for RichFormatter { for suggestion in suggestions { styled.none("\n"); styled.none(TAB); - styled.good("note: "); + styled.good("tip: "); styled.push_styled(suggestion); } } @@ -429,14 +429,14 @@ fn try_help(styled: &mut StyledStr, help: Option<&str>) { fn did_you_mean(styled: &mut StyledStr, context: &str, valid: &ContextValue) { if let ContextValue::String(valid) = valid { styled.none(TAB); - styled.good("note: "); + styled.good("tip: "); styled.none(context); styled.none(" '"); styled.good(valid); styled.none("' exists"); } else if let ContextValue::Strings(valid) = valid { styled.none(TAB); - styled.good("note: "); + styled.good("tip: "); styled.none(context); if valid.len() > 1 { styled.none("s"); diff --git a/examples/derive_ref/interop_tests.md b/examples/derive_ref/interop_tests.md index a7bcc7e7da5..b29e2d52d06 100644 --- a/examples/derive_ref/interop_tests.md +++ b/examples/derive_ref/interop_tests.md @@ -142,7 +142,7 @@ $ interop_hand_subcommand add --unknown ? failed error: unexpected argument '--unknown' found - note: to pass '--unknown' as a value, use '-- --unknown' + tip: to pass '--unknown' as a value, use '-- --unknown' Usage: interop_hand_subcommand[EXE] add [NAME]... diff --git a/tests/builder/error.rs b/tests/builder/error.rs index 5e9f253aa9d..4b0be802e24 100644 --- a/tests/builder/error.rs +++ b/tests/builder/error.rs @@ -141,7 +141,7 @@ fn suggest_trailing() { static MESSAGE: &str = "\ error: unexpected argument '--foo' found - note: to pass '--foo' as a value, use '-- --foo' + tip: to pass '--foo' as a value, use '-- --foo' Usage: rg [PATTERN] diff --git a/tests/builder/flags.rs b/tests/builder/flags.rs index 2a9f77e7d3d..27a89e07e89 100644 --- a/tests/builder/flags.rs +++ b/tests/builder/flags.rs @@ -160,7 +160,7 @@ fn issue_1284_argument_in_flag_style() { const USE_FLAG_AS_ARGUMENT: &str = "\ error: unexpected argument '--another-flag' found - note: to pass '--another-flag' as a value, use '-- --another-flag' + tip: to pass '--another-flag' as a value, use '-- --another-flag' Usage: mycat [OPTIONS] [filename] @@ -204,7 +204,7 @@ fn issue_2308_multiple_dashes() { static MULTIPLE_DASHES: &str = "\ error: unexpected argument '-----' found - note: to pass '-----' as a value, use '-- -----' + tip: to pass '-----' as a value, use '-- -----' Usage: test diff --git a/tests/builder/opts.rs b/tests/builder/opts.rs index 55956adaa7a..8ca719663a4 100644 --- a/tests/builder/opts.rs +++ b/tests/builder/opts.rs @@ -448,7 +448,7 @@ fn did_you_mean() { static DYM: &str = "\ error: unexpected argument '--optio' found - note: argument '--option' exists + tip: argument '--option' exists Usage: clap-test --option ... [positional] [positional2] [positional3]... @@ -546,7 +546,7 @@ fn issue_1073_suboptimal_flag_suggestion() { static DYM_ISSUE_1073: &str = "\ error: unexpected argument '--files-without-matches' found - note: argument '--files-without-match' exists + tip: argument '--files-without-match' exists Usage: ripgrep-616 --files-without-match diff --git a/tests/builder/possible_values.rs b/tests/builder/possible_values.rs index 7ecec32b646..eb3058d4fa9 100644 --- a/tests/builder/possible_values.rs +++ b/tests/builder/possible_values.rs @@ -181,7 +181,7 @@ fn possible_values_output() { error: invalid value 'slo' for '-O