From 7f3adc9bc267b9b2fc9f2b89640e36bd424ed84c Mon Sep 17 00:00:00 2001 From: Leonard Steppy Date: Tue, 17 Dec 2024 05:38:39 +0100 Subject: [PATCH] fix --quit not conflicting with --info and use default value for log level --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 996482a..54ea392 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,10 +44,10 @@ struct Args { #[arg(num_args = 1.., value_parser = ServerReference::from_str)] servers: Vec, /// How verbose logging output should be - #[arg(long, conflicts_with_all = ["quiet", "info"], default_value = "info")] - log_level: Option, + #[arg(long, default_value = "info", conflicts_with_all = ["quiet", "info"])] + log_level: LogLevel, /// Only log errors - #[arg(short, long, default_value = "false")] + #[arg(short, long, default_value = "false", conflicts_with_all = ["info"])] quiet: bool, /// Log additional debugging info #[arg(short='v', long, default_value = "false")]