From 8fb9effcae179ea91092780290956fbef0e9f4f6 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 23 Jan 2023 21:19:48 -0600 Subject: [PATCH] test: Update for clap 4.1.3 The latest clap release fixed a bug with the algorithm for providing suggestions, leading this suggestion to change. --- Cargo.toml | 2 +- tests/testsuite/cargo_add/invalid_arg/stderr.log | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9ba542f72..cf3bfb0d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,7 +70,7 @@ toml_edit = { version = "0.15.0", features = ["serde", "easy", "perf"] } unicode-xid = "0.2.0" url = "2.2.2" walkdir = "2.2" -clap = "4.1.1" +clap = "4.1.3" unicode-width = "0.1.5" openssl = { version = '0.10.11', optional = true } im-rc = "15.0.0" diff --git a/tests/testsuite/cargo_add/invalid_arg/stderr.log b/tests/testsuite/cargo_add/invalid_arg/stderr.log index 8274b20ad..b5ee3cca3 100644 --- a/tests/testsuite/cargo_add/invalid_arg/stderr.log +++ b/tests/testsuite/cargo_add/invalid_arg/stderr.log @@ -1,6 +1,6 @@ error: unexpected argument '--flag' found - note: to pass '--flag' as a value, use '-- --flag' + note: argument '--tag' exists Usage: cargo add [OPTIONS] [@] ... cargo add [OPTIONS] --path ...