File tree 3 files changed +3
-5
lines changed
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,7 @@ pub trait CommandExt: Sized {
118
118
command : & ' static str ,
119
119
actual : & ' static str ,
120
120
) -> Self {
121
- let msg = format ! (
122
- "There is no `--{want}` for `cargo {command}`. Only `--{actual}` is supported."
123
- ) ;
121
+ let msg = format ! ( "`cargo {command}` supports `--{actual}` instead." ) ;
124
122
let value_parser = UnknownArgumentValueParser :: suggest ( msg) ;
125
123
self . _arg ( flag ( want, "" ) . value_parser ( value_parser) . hide ( true ) )
126
124
}
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ fn cargo_compile_with_unsupported_mode() {
147
147
"\
148
148
error: unexpected argument '--debug' found
149
149
150
- tip: There is no `--debug` for ` cargo build`. Only `--release` is supported .
150
+ tip: ` cargo build` supports `--release` instead .
151
151
152
152
Usage: cargo[EXE] build [OPTIONS]
153
153
Original file line number Diff line number Diff line change @@ -2453,7 +2453,7 @@ fn install_with_unsupported_mode() {
2453
2453
"\
2454
2454
error: unexpected argument '--release' found
2455
2455
2456
- tip: There is no `--release` for ` cargo install`. Only `--debug` is supported .
2456
+ tip: ` cargo install` supports `--debug` instead .
2457
2457
2458
2458
Usage: cargo[EXE] install [OPTIONS] [crate]...
2459
2459
You can’t perform that action at this time.
0 commit comments