Don't crash on unrecognized arguments (#287)

This commit is contained in:
Eiren Rain authored and GitHub committed 2022-11-23 04:15:09 +03:00
1 parent 9d63191ff3
commit 6f8037f9f9
1 file changed
+1 -1
+1 -1
View File
@@ -31,7 +31,7 @@ public class Main {
options.addOption(help);
try {
cmd = parser.parse(options, args);
cmd = parser.parse(options, args, true);
} catch (ParseException e) {
System.out.println(e.getMessage());
formatter.printHelp("slimevr.jar", options);