From 9f8d2131d11bc3a069395c1245d7b92940305dee Mon Sep 17 00:00:00 2001 From: Minus345 <106837932+Minus345@users.noreply.github.com> Date: Wed, 26 Apr 2023 19:55:27 +0200 Subject: [PATCH] fixes --- README.md | 13 +++++++++++-- src/main/java/org/console/Main.java | 10 +++++----- 2 files changed, 16 insertions(+), 7 deletions(-) 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