Skip to content

Commit 021c491

Browse files
committed
Fix 0th arg not being read correctly
Closes: #6
1 parent df0f9f3 commit 021c491

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/kettingpowered/launcher

1 file changed

+1
-1
lines changed

src/main/java/org/kettingpowered/launcher/Args.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private static void printHelp(){
6262

6363
private @Nullable String getArg(String arg) {
6464
int index = args.indexOf(arg);
65-
if (index > 0) {
65+
if (index >= 0) {
6666
args.remove(index); //remove arg
6767
return args.remove(index); //this should be the value to that arg
6868
}

0 commit comments

Comments
 (0)