Skip to content

Commit

Permalink
Fix tip message
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Sep 20, 2023
1 parent 817c2cb commit c0540f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cargo/util/command_prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub trait CommandExt: Sized {
actual: &'static str,
) -> Self {
let msg = format!(
"There is no `--{want}` for `cargo {command}`. Only `--{actual}` is supported."
"there is no `--{want}` for `cargo {command}`. Only `--{actual}` is supported."
);
let value_parser = UnknownArgumentValueParser::suggest(msg);
self._arg(flag(want, "").value_parser(value_parser).hide(true))
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ fn cargo_compile_with_unsupported_mode() {
"\
error: unexpected argument '--debug' found
tip: There is no `--debug` for `cargo build`. Only `--release` is supported.
tip: there is no `--debug` for `cargo build`. Only `--release` is supported.
Usage: cargo[EXE] build [OPTIONS]
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,7 @@ fn install_with_unsupported_mode() {
"\
error: unexpected argument '--release' found
tip: There is no `--release` for `cargo install`. Only `--debug` is supported.
tip: there is no `--release` for `cargo install`. Only `--debug` is supported.
Usage: cargo[EXE] install [OPTIONS] [crate]...
Expand Down

0 comments on commit c0540f7

Please sign in to comment.