mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Assert optional args with square brackets [arg...]
This commit is contained in:
parent
13a09beccf
commit
11c50416c2
@ -1251,7 +1251,7 @@ fn run_multiple_packages() {
|
||||
|
||||
cargo().arg("-p").arg("d1").arg("-p").arg("d2")
|
||||
.with_status(1)
|
||||
.with_stderr_contains("error: The argument '--package <SPEC>...' was provided more than once, but cannot be used multiple times").run();
|
||||
.with_stderr_contains("error: The argument '--package [<SPEC>...]' was provided more than once, but cannot be used multiple times").run();
|
||||
|
||||
cargo()
|
||||
.arg("-p")
|
||||
|
@ -540,7 +540,7 @@ fn fail_with_multiple_packages() {
|
||||
.with_status(1)
|
||||
.with_stderr_contains(
|
||||
"\
|
||||
error: The argument '--package <SPEC>...' was provided more than once, \
|
||||
error: The argument '--package [<SPEC>...]' was provided more than once, \
|
||||
but cannot be used multiple times
|
||||
",
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user