We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3c41dc commit a6c3b37Copy full SHA for a6c3b37
tests/testsuite/install.rs
@@ -2443,3 +2443,23 @@ fn ambiguous_registry_vs_local_package() {
2443
.run();
2444
assert_has_installed_exe(cargo_home(), "foo");
2445
}
2446
+
2447
+#[cargo_test]
2448
+fn install_with_unsupported_mode() {
2449
+ pkg("foo", "0.0.1");
2450
2451
+ cargo_process("install foo --release")
2452
+ .with_stderr(
2453
+ "\
2454
+error: unexpected argument '--release' found
2455
2456
+ tip: There is no `--release` for `cargo install`. Only `--debug` is supported.
2457
2458
+Usage: cargo[EXE] install [OPTIONS] [crate]...
2459
2460
+For more information, try '--help'.
2461
+",
2462
+ )
2463
+ .with_status(1)
2464
+ .run();
2465
+}
0 commit comments