fix: use data_dir from config.toml if present

fixes: https://todo.sr.ht/~gheartsfield/nostr-rs-relay/64
This commit is contained in:
Greg Heartsfield
2023-01-16 17:21:12 -06:00
parent cf3e67500f
commit 585fdd3884
3 changed files with 6 additions and 8 deletions

View File

@@ -7,8 +7,7 @@ pub struct CLIArgs {
short,
long,
help = "Use the <directory> as the location of the database",
default_value = ".",
required = false
required = false,
)]
pub db: String,
pub db: Option<String>,
}