Fix reading of database-path option if given
This commit is contained in:
parent
76bacdca08
commit
212b2d3bf2
@ -69,8 +69,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
|
|
||||||
let mut config = get_config(&options)?;
|
let mut config = get_config(&options)?;
|
||||||
|
|
||||||
if let Some(db_path) = clap_matches.value_of("database_path") {
|
if clap_matches.is_present("database-path") {
|
||||||
config.database_path = db_path.into();
|
config.database_path = options.database_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
|
Loading…
Reference in New Issue
Block a user