a java.nio.BufferOverflowException while the same parameter specified
as "-param=value" worked fine.
}
// Override defaults with command-line options
- for (int i = 0; i < argv.length; i++) {
+ int i = 0;
+ for (; i < argv.length; i++) {
if (argv[i].length() == 0)
continue;
continue;
}
- if (Configuration.setParam(argv[i]))
- continue;
-
if (argv[i].charAt(0) == '-') {
if (i+1 < argv.length) {
if (Configuration.setParam(argv[i].substring(1), argv[i+1])) {
continue;
}
}
+ if (Configuration.setParam(argv[i]))
+ continue;
+
usage();
}