From 746c81ab60afb168060cd8247734d19f91ce20ca Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 19 Jan 2024 18:50:51 +0100 Subject: [PATCH] app(cli): apply review --- crates/app/src/config/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/app/src/config/cli.rs b/crates/app/src/config/cli.rs index 92026a2..bdf769e 100644 --- a/crates/app/src/config/cli.rs +++ b/crates/app/src/config/cli.rs @@ -1,6 +1,6 @@ use std::path::PathBuf; -use clap::Parser; +use clap::{builder::BoolishValueParser, ArgAction, Parser}; #[derive(Parser)] pub(crate) struct Args { @@ -10,6 +10,6 @@ pub(crate) struct Args { /// Turn off the startup message. /// /// The startup message is not constant and depends on the time. - #[arg(long, env = "NO_STARTUP_MESSAGE", default_value = "false")] + #[arg(long, env = "NO_STARTUP_MESSAGE", action = ArgAction::SetTrue, value_parser = BoolishValueParser::new())] pub no_startup_message: bool, }