Skip to content

Commit

Permalink
Use help if user clicks exe
Browse files Browse the repository at this point in the history
  • Loading branch information
MolotovCherry committed Nov 11, 2024
1 parent 2d8d83c commit dcd955c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/autostart-installer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Flags:

fn main() -> ExitCode {
let Some(flag) = env::args().nth(1) else {
fatal_popup("No flags", "No install/uninstall/help flags were specified");
display_popup("Usage", HELP, MessageBoxIcon::Info);
return ExitCode::SUCCESS;
};

let is_install = flag == "--install";
Expand Down Expand Up @@ -70,7 +71,7 @@ fn install() -> io::Result<()> {
if !cur_exe.exists() {
fatal_popup(
"Missing",
"bg3_autostart.exe needs to be in the same folder as autostart_installer.exe",
"bg3_autostart.exe needs to be in the same folder as autostart-installer.exe",
);
}

Expand Down

0 comments on commit dcd955c

Please sign in to comment.