diff options
author | Alex Vinyals | 2023-07-09 16:30:43 +0000 |
---|---|---|
committer | GitHub | 2023-07-09 16:30:43 +0000 |
commit | 28452e1f2a63fe4806078da0f854d01506fc0c0c (patch) | |
tree | 7b83355481b5fb2b8783a4cb07372e93ceaf3e0c | |
parent | 550192826bd6ec1598ed209c84a78955b1b53bae (diff) |
Initialize log and config files right after parsing arguments (#7585)
-rw-r--r-- | helix-term/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs index 97e962e0..542d18e6 100644 --- a/helix-term/src/main.rs +++ b/helix-term/src/main.rs @@ -76,6 +76,9 @@ FLAGS: let args = Args::parse_args().context("could not parse arguments")?; + helix_loader::initialize_config_file(args.config_file.clone()); + helix_loader::initialize_log_file(args.log_file.clone()); + // Help has a higher priority and should be handled separately. if args.display_help { print!("{}", help); @@ -109,9 +112,6 @@ FLAGS: return Ok(0); } - helix_loader::initialize_config_file(args.config_file.clone()); - helix_loader::initialize_log_file(args.log_file.clone()); - setup_logging(args.verbosity).context("failed to initialize logging")?; let config = match Config::load_default() { |