improvement: make config file location configurable via CLI args

This commit is contained in:
rorp
2023-02-08 07:59:26 -06:00
committed by Greg Heartsfield
parent 2e42b1b86e
commit 28b7b83a6e
4 changed files with 26 additions and 10 deletions
+7
View File
@@ -10,4 +10,11 @@ pub struct CLIArgs {
required = false,
)]
pub db: Option<String>,
#[arg(
short,
long,
help = "Use the <file name> as the location of the config file",
required = false,
)]
pub config: Option<String>,
}