Skip to content

Commit 07be119

Browse files
alevinvalSchuyler Mortimer
authored and
Schuyler Mortimer
committedJul 10, 2024
Initialize log and config files right after parsing arguments (helix-editor#7585)
1 parent f0eb8a6 commit 07be119

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎helix-term/src/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -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() {

0 commit comments

Comments
 (0)
Please sign in to comment.