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" 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: 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 {