mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 06:11:36 +00:00
Be clearer about required options
This commit is contained in:
@@ -178,7 +178,7 @@ public class Limelight implements NvConnectionListener {
|
|||||||
String audio = "default";
|
String audio = "default";
|
||||||
Level debug = Level.SEVERE;
|
Level debug = Level.SEVERE;
|
||||||
|
|
||||||
for (int i = 0; i < args.length - 1; i++) {
|
for (int i = 0; i < args.length; i++) {
|
||||||
if (args[i].equals("-input")) {
|
if (args[i].equals("-input")) {
|
||||||
if (i + 1 < args.length) {
|
if (i + 1 < args.length) {
|
||||||
inputs.add(args[i+1]);
|
inputs.add(args[i+1]);
|
||||||
@@ -262,6 +262,11 @@ public class Limelight implements NvConnectionListener {
|
|||||||
debug = Level.WARNING;
|
debug = Level.WARNING;
|
||||||
} else if (args[i].equals("-vv")) {
|
} else if (args[i].equals("-vv")) {
|
||||||
debug = Level.ALL;
|
debug = Level.ALL;
|
||||||
|
} else if (args[i].startsWith("-")) {
|
||||||
|
System.out.println("Syntax Error: Unrecognized argument: " + args[i]);
|
||||||
|
parse = false;
|
||||||
|
} else if (host == null) {
|
||||||
|
host = args[i];
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Syntax Error: Unrecognized argument: " + args[i]);
|
System.out.println("Syntax Error: Unrecognized argument: " + args[i]);
|
||||||
parse = false;
|
parse = false;
|
||||||
@@ -285,8 +290,7 @@ public class Limelight implements NvConnectionListener {
|
|||||||
System.out.println();
|
System.out.println();
|
||||||
System.out.println("Use ctrl-c to exit application");
|
System.out.println("Use ctrl-c to exit application");
|
||||||
System.exit(5);
|
System.exit(5);
|
||||||
} else
|
}
|
||||||
host = args[args.length-1];
|
|
||||||
|
|
||||||
if (bitrate == 0) {
|
if (bitrate == 0) {
|
||||||
if (height<=720)
|
if (height<=720)
|
||||||
|
|||||||
Reference in New Issue
Block a user