Skip to content

Commit ea41727

Browse files
Fixed args parsing
1 parent 574b361 commit ea41727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/codingchili/Model/ImportEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private static Optional<String> getArgParamValue(String[] args, String argName)
6161
for (int i = 0; i < args.length; i++) {
6262
if (args[i].equals(argName)) {
6363
if (i + 1 < args.length) {
64-
return Optional.of(args[i + i]);
64+
return Optional.of(args[i + 1]);
6565
}
6666
}
6767
}

0 commit comments

Comments
 (0)