Unverified Commit 8ed93297 authored by NicolaiO's avatar NicolaiO 🐼
Browse files

Make "-a" argument to activate autoRef on startup work again

parent c52827bf
Pipeline #8616 passed with stage
in 3 minutes and 20 seconds
......@@ -4,14 +4,12 @@
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="-Pproductive" />
<option name="scriptParameters" value="run --args=&quot;-a&quot;" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="run" />
</list>
<list />
</option>
<option name="vmOptions" value="" />
</ExternalSystemSettings>
......
......@@ -16,6 +16,8 @@ import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import javax.swing.SwingUtilities;
/**
* Main class for auto referee.
......@@ -36,10 +38,11 @@ public final class AutoReferee
cmd = parseOptions(args, options, new DefaultParser());
ifHasOption("h", () -> printHelp(options));
ifNotHasOption("hl", AutoReferee::startUi);
ifHasOption("a", AutoReferee::activateAutoRef);
ifNotHasOption("hl", () -> SwingUtilities.invokeLater(AutoReferee::startUi));
start();
ifHasOption("a", AutoReferee::activateAutoRef);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment