fix: use data_dir from config.toml if present
fixes: https://todo.sr.ht/~gheartsfield/nostr-rs-relay/64
This commit is contained in:
+2
-3
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user