Skip to content

Commit

Permalink
fix: Unknown cli argument crashes application
Browse files Browse the repository at this point in the history
  • Loading branch information
tth05 committed Jan 19, 2021
1 parent f07f563 commit 38d5f6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/me/coley/recaf/Recaf.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ private static void init() {
private static void launch(String[] args) {
// Setup initializer, this loads command line arguments
Initializer initializer = new Initializer();
new CommandLine(initializer).execute(args);
CommandLine commandLine = new CommandLine(initializer);
commandLine.execute(args);
if (commandLine.getUnmatchedArguments().size() > 0)
return;

headless = initializer.cli;
loadPlugins();
// Do version check
Expand Down

0 comments on commit 38d5f6b

Please # to comment.