fix --quit not conflicting with --info and use default value for log level

This commit is contained in:
Leonard Steppy 2024-12-17 05:38:39 +01:00
parent c25e0264b4
commit 7f3adc9bc2

View File

@ -44,10 +44,10 @@ struct Args {
#[arg(num_args = 1.., value_parser = ServerReference::from_str)] #[arg(num_args = 1.., value_parser = ServerReference::from_str)]
servers: Vec<ServerReference>, servers: Vec<ServerReference>,
/// How verbose logging output should be /// How verbose logging output should be
#[arg(long, conflicts_with_all = ["quiet", "info"], default_value = "info")] #[arg(long, default_value = "info", conflicts_with_all = ["quiet", "info"])]
log_level: Option<LogLevel>, log_level: LogLevel,
/// Only log errors /// Only log errors
#[arg(short, long, default_value = "false")] #[arg(short, long, default_value = "false", conflicts_with_all = ["info"])]
quiet: bool, quiet: bool,
/// Log additional debugging info /// Log additional debugging info
#[arg(short='v', long, default_value = "false")] #[arg(short='v', long, default_value = "false")]