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