Skip to content

Commit

Permalink
Merge pull request #60 from glotzerlab/dependabot-cargo-trunk-clap-ve…
Browse files Browse the repository at this point in the history
…rbosity-flag-3.0.1

Bump clap-verbosity-flag from 2.2.2 to 3.0.1
  • Loading branch information
joaander authored Dec 2, 2024
2 parents 3e2e39b + 27ec6f9 commit 3aded8e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
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

0 comments on commit 3aded8e

Please sign in to comment.