From 5dc3886a96a7e362828a5614e8650986fdf43221 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 19:37:00 +0000 Subject: [PATCH 1/3] Bump clap-verbosity-flag from 2.2.2 to 3.0.1 Bumps [clap-verbosity-flag](https://github.com/clap-rs/clap-verbosity-flag) from 2.2.2 to 3.0.1. - [Changelog](https://github.com/clap-rs/clap-verbosity-flag/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap-verbosity-flag/compare/v2.2.2...v3.0.1) --- updated-dependencies: - dependency-name: clap-verbosity-flag dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 576ca89..503cd9a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -144,9 +144,9 @@ dependencies = [ [[package]] name = "clap-verbosity-flag" -version = "2.2.2" +version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e099138e1807662ff75e2cebe4ae2287add879245574489f9b1588eb5e5564ed" +checksum = "54381ae56ad222eea3f529c692879e9c65e07945ae48d3dc4d1cb18dbec8cf44" dependencies = [ "clap", "log", diff --git a/Cargo.toml b/Cargo.toml index 66ea086..a50f53a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ categories = ["command-line-utilities", "science"] [dependencies] clap = { version = "4.5.21", features = ["derive", "env"] } -clap-verbosity-flag = "2.2.2" +clap-verbosity-flag = "3.0.1" console = "0.15.8" env_logger = "0.11.5" home = "0.5.9" From 95cdcfa781c0bf33ebdba4c2c11138965d92707a Mon Sep 17 00:00:00 2001 From: "Joshua A. Anderson" Date: Mon, 2 Dec 2024 14:44:11 -0500 Subject: [PATCH 2/3] Support clap_verbosity_flag 3 --- src/main.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5a062bb..8be5be6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ #![warn(clippy::pedantic)] use clap::Parser; +use clap_verbosity_flag::log::LevelFilter; use indicatif::{MultiProgress, ProgressDrawTarget}; use indicatif_log_bridge::LogWrapper; use log::{error, info}; @@ -40,13 +41,13 @@ fn main_detail() -> Result<(), Box> { } let log_level = match options.verbose.log_level_filter() { - clap_verbosity_flag::LevelFilter::Off => "off", - clap_verbosity_flag::LevelFilter::Error => "error", - clap_verbosity_flag::LevelFilter::Warn => "warn", + LevelFilter::Off => "off", + LevelFilter::Error => "error", + LevelFilter::Warn => "warn", - clap_verbosity_flag::LevelFilter::Info => "info", - clap_verbosity_flag::LevelFilter::Debug => "debug", - clap_verbosity_flag::LevelFilter::Trace => "trace", + LevelFilter::Info => "info", + LevelFilter::Debug => "debug", + LevelFilter::Trace => "trace", }; let multi_progress = if options.global.no_progress { From 27ec6f9df99cfb083ff00bea05fc44058b616090 Mon Sep 17 00:00:00 2001 From: "Joshua A. Anderson" Date: Mon, 2 Dec 2024 14:48:34 -0500 Subject: [PATCH 3/3] Document clap_verbosity_flag version. --- THIRDPARTY.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/THIRDPARTY.yaml b/THIRDPARTY.yaml index 9621741..e176803 100644 --- a/THIRDPARTY.yaml +++ b/THIRDPARTY.yaml @@ -1542,7 +1542,7 @@ third_party_libraries: limitations under the License. - package_name: clap-verbosity-flag - package_version: 2.2.2 + package_version: 3.0.1 repository: https://github.com/clap-rs/clap-verbosity-flag license: MIT OR Apache-2.0 licenses: