ArgumentList parser should not read past arrays length (Solves again)
@@ -35,7 +35,7 @@ public class ArgumentList {
}
}
- int range = Math.min(arg.getMaxArgumentsConsumed(), length + 1);
+ int range = Math.min(arg.getMaxArgumentsConsumed(), length);
// remove the arguments from this list
length -= range;
