From d38b78c148fa3b7dcbc4c064e27f27552a50e992 Mon Sep 17 00:00:00 2001 From: Brutus5000 Date: Sat, 18 May 2024 01:35:38 +0200 Subject: [PATCH] Ignore unknown CLI args Increase client compatibility for kotlin-ice-adapter --- .../src/main/java/com/faforever/iceadapter/IceAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ice-adapter/src/main/java/com/faforever/iceadapter/IceAdapter.java b/ice-adapter/src/main/java/com/faforever/iceadapter/IceAdapter.java index 1dce7c1..d4caace 100644 --- a/ice-adapter/src/main/java/com/faforever/iceadapter/IceAdapter.java +++ b/ice-adapter/src/main/java/com/faforever/iceadapter/IceAdapter.java @@ -43,7 +43,9 @@ public class IceAdapter implements Callable { public static volatile GameSession gameSession; public static void main(String[] args) { - new CommandLine(new IceAdapter()).execute(args); + new CommandLine(new IceAdapter()) + .setUnmatchedArgumentsAllowed(true) + .execute(args); } @Override