forked from katzen-cafe/iowo
app: unify config handling stuff a bit
This commit is contained in:
parent
6ccfaedb13
commit
ea2e5d6075
5 changed files with 94 additions and 74 deletions
12
crates/app/src/config/cli.rs
Normal file
12
crates/app/src/config/cli.rs
Normal 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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue