Skip to content

Commit 6feea34

Browse files
committed
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
1 parent 145219a commit 6feea34

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ base64 = "0.21.0"
2121
bytesize = "1.0"
2222
cargo-platform = { path = "crates/cargo-platform", version = "0.1.2" }
2323
cargo-util = { path = "crates/cargo-util", version = "0.2.4" }
24-
clap = "4.1.3"
24+
clap = "4.2.0"
2525
crates-io = { path = "crates/crates-io", version = "0.36.0" }
2626
curl = { version = "0.4.44", features = ["http2"] }
2727
curl-sys = "0.4.61"

tests/testsuite/cargo_add/invalid_arg/stderr.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error: unexpected argument '--flag' found
22

3-
note: argument '--tag' exists
3+
tip: a similar argument exists: '--tag'
44

55
Usage: cargo add [OPTIONS] <DEP>[@<VERSION>] ...
66
cargo add [OPTIONS] --path <PATH> ...

tests/testsuite/cargo_remove/invalid_arg/stderr.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error: unexpected argument '--flag' found
22

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

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

tests/testsuite/init/unknown_flags/stderr.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error: unexpected argument '--flag' found
22

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

55
Usage: cargo[EXE] init <path>
66

tests/testsuite/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ fn run_bins() {
592592
"\
593593
error: unexpected argument '--bins' found
594594
595-
note: argument '--bin' exists",
595+
tip: a similar argument exists: '--bin'",
596596
)
597597
.run();
598598
}

0 commit comments

Comments
 (0)