forked from auracaster/bumble_mirror
address PR comment
This commit is contained in:
+5
-1
@@ -8,7 +8,11 @@ class CommandLineInterface {
|
|||||||
System.out.println("Starting proxy")
|
System.out.println("Starting proxy")
|
||||||
|
|
||||||
var tcpPort = DEFAULT_TCP_PORT
|
var tcpPort = DEFAULT_TCP_PORT
|
||||||
if (args.size >= 1) {
|
if (args.isNotEmpty()) {
|
||||||
|
if (args[0] == "-h" || args[0] == "--help") {
|
||||||
|
System.out.println("usage: <launch-command> [-h|--help] [<tcp-port>]")
|
||||||
|
return
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
tcpPort = args[0].toInt()
|
tcpPort = args[0].toInt()
|
||||||
} catch (error: NumberFormatException) {
|
} catch (error: NumberFormatException) {
|
||||||
|
|||||||
Reference in New Issue
Block a user