From fe6e3c227f71c69ff1e6d30849dcc4975384e47b Mon Sep 17 00:00:00 2001 From: Edo Date: Fri, 15 Sep 2023 19:19:04 +0200 Subject: [PATCH] maint(main): simply return out of the main function instead of calling exit() --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 27bac04..b681e89 100644 --- a/src/main.rs +++ b/src/main.rs @@ -322,7 +322,7 @@ fn main() { println!( "\nExample:\n alterware-launcher.exe iw4x --bonus --pass \"-console -nointro\"" ); - std::process::exit(0); + return; } if arg_bool(&args, "--version") || arg_bool(&args, "-v") { @@ -342,7 +342,7 @@ fn main() { "mxve".bright_magenta().on_black().underline(), ".de".on_black().underline() ); - std::process::exit(0); + return; } let install_path: PathBuf;