Skip to content

Commit

Permalink
Auto merge of #11904 - epage:clap, r=Muscraft
Browse files Browse the repository at this point in the history
chore: Upgrade to clap v4.2

Tests in `master` are currently failing because its building with clap v4.2 but the tests have snapshots from v4.1
  • Loading branch information
bors committed Mar 28, 2023
2 parents 145219a + 6feea34 commit a6e1e26
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ base64 = "0.21.0"
bytesize = "1.0"
cargo-platform = { path = "crates/cargo-platform", version = "0.1.2" }
cargo-util = { path = "crates/cargo-util", version = "0.2.4" }
clap = "4.1.3"
clap = "4.2.0"
crates-io = { path = "crates/crates-io", version = "0.36.0" }
curl = { version = "0.4.44", features = ["http2"] }
curl-sys = "0.4.61"
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/cargo_add/invalid_arg/stderr.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error: unexpected argument '--flag' found

note: argument '--tag' exists
tip: a similar argument exists: '--tag'

Usage: cargo add [OPTIONS] <DEP>[@<VERSION>] ...
cargo add [OPTIONS] --path <PATH> ...
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/cargo_remove/invalid_arg/stderr.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error: unexpected argument '--flag' found

note: to pass '--flag' as a value, use '-- --flag'
tip: to pass '--flag' as a value, use '-- --flag'

Usage: cargo[EXE] remove <DEP_ID>...

Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/init/unknown_flags/stderr.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error: unexpected argument '--flag' found

note: to pass '--flag' as a value, use '-- --flag'
tip: to pass '--flag' as a value, use '-- --flag'

Usage: cargo[EXE] init <path>

Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ fn run_bins() {
"\
error: unexpected argument '--bins' found
note: argument '--bin' exists",
tip: a similar argument exists: '--bin'",
)
.run();
}
Expand Down

0 comments on commit a6e1e26

Please sign in to comment.