forked from katzen-cafe/iowo
app: improve config loading and merging
This commit is contained in:
parent
ea2e5d6075
commit
7c9dca0ae2
4 changed files with 73 additions and 54 deletions
|
@ -6,7 +6,7 @@ use clap::Parser;
|
|||
pub(crate) struct Args {
|
||||
/// Read this config file.
|
||||
#[arg(short, long)]
|
||||
pub config_file: Option<PathBuf>,
|
||||
pub config_path: 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