Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump clap-verbosity-flag from 2.2.2 to 3.0.1 #60

Merged
merged 3 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion THIRDPARTY.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 7 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -40,13 +41,13 @@ fn main_detail() -> Result<(), Box<dyn Error>> {
}

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 {
Expand Down
Loading