From 5e8c46dfcf48511d6836c28cf5c053ce484b2e13 Mon Sep 17 00:00:00 2001 From: Glenn Date: Sat, 18 Nov 2023 23:35:54 +0100 Subject: [PATCH] fix: delay config loading --- src/cli.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cli.cr b/src/cli.cr index 3c0bcf0..48b3393 100644 --- a/src/cli.cr +++ b/src/cli.cr @@ -88,12 +88,11 @@ module GX end def run() - @config.load_from_file - case @config.mode when Config::Mode::ShowVersion STDOUT.puts "#{PROGRAM_NAME} #{VERSION}" when Config::Mode::Mount + @config.load_from_file mount end end