mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 16:49:10 +00:00
Merge pull request #302 from Parabot/task/default-argument-output
[TASK] Added System.err output if an unknown argument is given
This commit is contained in:
@@ -27,7 +27,6 @@ public final class Landing {
|
|||||||
private static String username;
|
private static String username;
|
||||||
private static String password;
|
private static String password;
|
||||||
|
|
||||||
|
|
||||||
public static void main(String... args) throws IOException {
|
public static void main(String... args) throws IOException {
|
||||||
|
|
||||||
if (Context.getJavaVersion() >= 9) {
|
if (Context.getJavaVersion() >= 9) {
|
||||||
@@ -152,6 +151,9 @@ public final class Landing {
|
|||||||
case "-uuid":
|
case "-uuid":
|
||||||
Core.setQuickLaunchByUuid(Integer.parseInt(args[++i]));
|
Core.setQuickLaunchByUuid(Integer.parseInt(args[++i]));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
System.err.println(String.format("Unknown argument given: %s", arg.toLowerCase()));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package org.parabot.core.network.proxy;
|
package org.parabot.core.network.proxy;
|
||||||
|
|
||||||
|
import org.parabot.core.Core;
|
||||||
import org.parabot.core.ui.utils.UILog;
|
import org.parabot.core.ui.utils.UILog;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -44,7 +45,7 @@ public class ProxySocket extends Socket {
|
|||||||
socket.close();
|
socket.close();
|
||||||
value++;
|
value++;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Core.verbose("Error closing proxy connection: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
|||||||
Reference in New Issue
Block a user