app: unify config handling stuff a bit

This commit is contained in:
Schrottkatze 2024-01-15 09:03:55 +01:00
parent 6ccfaedb13
commit ea2e5d6075
Signed by: schrottkatze
GPG key ID: DFD0FD205943C14A
5 changed files with 94 additions and 74 deletions

View file

@ -0,0 +1,12 @@
use std::path::PathBuf;
use clap::Parser;
#[derive(Parser)]
pub(crate) struct Args {
/// Read this config file.
#[arg(short, long)]
pub config_file: Option<PathBuf>,
#[arg(long, env = "NO_STARTUP_MESSAGE", default_value = "false")]
pub no_startup_message: bool,
}