From d41554871a75cfc34846aa60be6966dc916e1387 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 15 Dec 2023 14:54:43 -0600 Subject: [PATCH 1/2] docs: Add help output to examples --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 11eb268..bb6b410 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" From 45c4a59448dcec4017f8b94746c06cbe27aac287 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 15 Dec 2023 14:56:18 -0600 Subject: [PATCH 2/2] fix: Adjust default help This is part of #77 --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 32ee1da..16c7d4f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -157,7 +157,7 @@ pub trait LogLevel { fn default() -> Option; fn verbose_help() -> Option<&'static str> { - Some("More output per occurrence") + Some("Increase logging verbosity") } fn verbose_long_help() -> Option<&'static str> { @@ -165,7 +165,7 @@ pub trait LogLevel { } fn quiet_help() -> Option<&'static str> { - Some("Less output per occurrence") + Some("Decrease logging verbosity") } fn quiet_long_help() -> Option<&'static str> {