@@ -76,6 +76,9 @@ FLAGS:
77 let args = Args::parse_args().context("could not parse arguments")?;
77 let args = Args::parse_args().context("could not parse arguments")?;
79+ helix_loader::initialize_config_file(args.config_file.clone());
80+ helix_loader::initialize_log_file(args.log_file.clone());
79 // Help has a higher priority and should be handled separately.
82 // Help has a higher priority and should be handled separately.
80 if args.display_help {
83 if args.display_help {
81 print!("{}", help);
84 print!("{}", help);
@@ -109,9 +112,6 @@ FLAGS:
109 return Ok(0);
112 return Ok(0);
112− helix_loader::initialize_config_file(args.config_file.clone());
113− helix_loader::initialize_log_file(args.log_file.clone());
115 setup_logging(args.verbosity).context("failed to initialize logging")?;
115 setup_logging(args.verbosity).context("failed to initialize logging")?;
117 let config = match Config::load_default() {
117 let config = match Config::load_default() {