diff --git a/README.md b/README.md index 24bad02..1320258 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,17 @@ Serial Artent Brige compatible with Fader-Wing-Arduino ## Parameters -`java -jar faderwing.jar [Serial Port] ["broadcast" / unicast ip (ArtNet)] [subnet] [universe] [ip Address]` +`java -jar faderwing.jar [parameters]` + +- `-h` help +- `-ip` ArtNet IP +- `-s` Serial Port (int) +- `-as` ArtNet Subnet +- `-au` ArtNet Universe +- `-b` Broad cast +- `-u` Uni cast ## Tips -If you use Qlc+ on the same computer as the software, use `127.0.0.255` in the java programm and the `127.0.0.1` input interface in Qlc+. +If you use Qlc+ on the same computer as the software, use `127.0.0.255` in the java programm and the `127.0.0.1` input +interface in Qlc+. diff --git a/src/main/java/org/console/Main.java b/src/main/java/org/console/Main.java index 92a4c82..c3daab1 100644 --- a/src/main/java/org/console/Main.java +++ b/src/main/java/org/console/Main.java @@ -92,12 +92,12 @@ private static void commandLineParameters(String[] args) { .desc("Serial Port (int)") .hasArg(true) .build()) - .addOption(Option.builder("su") + .addOption(Option.builder("as") .longOpt("subnet") .hasArg(true) .build()) - .addOption(Option.builder("u") - .longOpt("subnet") + .addOption(Option.builder("au") + .longOpt("universe") .hasArg(true) .build()); @@ -120,10 +120,10 @@ private static void commandLineParameters(String[] args) { serialport = Integer.parseInt(line.getOptionValue("s")); } if (line.hasOption("su")) { - subnet = Integer.parseInt(line.getOptionValue("su")); + subnet = Integer.parseInt(line.getOptionValue("as")); } if (line.hasOption("u")) { - universe = Integer.parseInt(line.getOptionValue("u")); + universe = Integer.parseInt(line.getOptionValue("au")); } } catch (ParseException exp) { // oops, something went wrong