From 9e103c5decda9e32604a6cbc04caa63de769e691 Mon Sep 17 00:00:00 2001 From: TornaxO7 Date: Tue, 13 Aug 2024 14:16:16 +0200 Subject: [PATCH] Fix cli data-dir (#93) fix data-dir set --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.rs b/src/config.rs index 24859c8..a640a59 100644 --- a/src/config.rs +++ b/src/config.rs @@ -191,6 +191,9 @@ pub fn init(cli: &Cli) -> Result<()> { .merge(Yaml::file(color_file)) .extract::()?; config.color = base16; + if let Some(data_dir) = cli.data_dir.clone() { + config.data_home = data_dir; + } CONFIG .set(config) .map_err(|config| eyre!("failed to set config {config:?}"))