Fix reading of database-path option if given

This commit is contained in:
Elias Schriefer 2021-07-08 16:10:08 +02:00
parent 76bacdca08
commit 212b2d3bf2

View File

@ -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)]