mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-11-22 05:34:41 +01:00
app(cli): apply review
This commit is contained in:
parent
0615ea653c
commit
746c81ab60
|
@ -1,6 +1,6 @@
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::{builder::BoolishValueParser, ArgAction, Parser};
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
pub(crate) struct Args {
|
pub(crate) struct Args {
|
||||||
|
@ -10,6 +10,6 @@ pub(crate) struct Args {
|
||||||
/// Turn off the startup message.
|
/// Turn off the startup message.
|
||||||
///
|
///
|
||||||
/// The startup message is not constant and depends on the time.
|
/// 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,
|
pub no_startup_message: bool,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue