From fb89cc9ec177bb5e825e824fd07c1d8a12c2d0b0 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Mon, 3 Oct 2022 11:41:21 +0200 Subject: Upgrade to clap 4 --- wpa-psk-cli/Cargo.toml | 2 +- wpa-psk-cli/src/bin/wpa-psk.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'wpa-psk-cli') diff --git a/wpa-psk-cli/Cargo.toml b/wpa-psk-cli/Cargo.toml index 7d2cd0b..e4b2679 100644 --- a/wpa-psk-cli/Cargo.toml +++ b/wpa-psk-cli/Cargo.toml @@ -12,7 +12,7 @@ categories = ["command-line-utilities"] publish = true [dependencies] -clap = { version = "3.1.18", features = ["derive"] } +clap = { version = "4.0.8", features = ["derive", "wrap_help"] } wpa-psk = { path = "../wpa-psk", version = "0.2.0" } [dev-dependencies] diff --git a/wpa-psk-cli/src/bin/wpa-psk.rs b/wpa-psk-cli/src/bin/wpa-psk.rs index baa0337..b9e0e38 100644 --- a/wpa-psk-cli/src/bin/wpa-psk.rs +++ b/wpa-psk-cli/src/bin/wpa-psk.rs @@ -45,6 +45,6 @@ fn run() -> Result<(), Box> { #[test] fn verify_clap_app() { - use clap::IntoApp; + use clap::CommandFactory; Args::command().debug_assert() } -- cgit v1.2.3