Skip to content

Commit

Permalink
Merge pull request #79 from epage/help
Browse files Browse the repository at this point in the history
fix: Adjust default help
  • Loading branch information
epage authored Dec 15, 2023
2 parents 012f616 + 45c4a59 commit 8b716f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ log = "0.4.1"
clap = { version = "4.0.0", default-features = false, features = ["std", "derive"] }

[dev-dependencies]
clap = { version = "4.0.0", default-features = false, features = ["help", "usage"] }
env_logger = "0.10.1"
tracing = "0.1"
tracing-subscriber = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@ pub trait LogLevel {
fn default() -> Option<log::Level>;

fn verbose_help() -> Option<&'static str> {
Some("More output per occurrence")
Some("Increase logging verbosity")
}

fn verbose_long_help() -> Option<&'static str> {
None
}

fn quiet_help() -> Option<&'static str> {
Some("Less output per occurrence")
Some("Decrease logging verbosity")
}

fn quiet_long_help() -> Option<&'static str> {
Expand Down

0 comments on commit 8b716f3

Please sign in to comment.