app(cli): apply review

This commit is contained in:
Schrottkatze 2024-01-19 18:50:51 +01:00
parent f65ae990d7
commit 32c981f245
Signed by: schrottkatze
GPG key ID: DFD0FD205943C14A

View file

@ -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,
}