From 212b2d3bf2698b59a0925f9f2fd846e023207c4d Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Thu, 8 Jul 2021 16:10:08 +0200 Subject: [PATCH] Fix reading of database-path option if given --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3939b2d..84b2fc1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -69,8 +69,8 @@ async fn main() -> Result<(), Box> { let mut config = get_config(&options)?; - if let Some(db_path) = clap_matches.value_of("database_path") { - config.database_path = db_path.into(); + if clap_matches.is_present("database-path") { + config.database_path = options.database_path; } #[cfg(debug_assertions)]