@@ -76,6 +76,9 @@ FLAGS:
7676
7777 let args = Args::parse_args().context("could not parse arguments")?;
7878
79+ helix_loader::initialize_config_file(args.config_file.clone());
80+ helix_loader::initialize_log_file(args.log_file.clone());
81+
7982 // Help has a higher priority and should be handled separately.
8083 if args.display_help {
8184 print!("{}", help);
@@ -109,9 +112,6 @@ FLAGS:
109112 return Ok(0);
110113 }
111114
112− helix_loader::initialize_config_file(args.config_file.clone());
113− helix_loader::initialize_log_file(args.log_file.clone());
114−
115115 setup_logging(args.verbosity).context("failed to initialize logging")?;
116116
117117 let config = match Config::load_default() {