NIHVIVO-239 Permit a zero-length second argument from the command line - might happen in Linux.

This commit is contained in:
jeb228 2010-06-03 19:26:47 +00:00
parent 32fe55f854
commit 2c0d76286d

View file

@ -87,11 +87,14 @@ public class SeleniumRunner {
} }
if (args.length == 2) { if (args.length == 2) {
String option = args[1].trim();
if (option.length() > 0) {
if (!"interactive".equalsIgnoreCase(args[1])) { if (!"interactive".equalsIgnoreCase(args[1])) {
usage("Invalid argument '" + args[1] + "'"); usage("Invalid argument '" + args[1] + "'");
} }
interactive = true; interactive = true;
} }
}
try { try {
parms = new SeleniumRunnerParameters(args[0]); parms = new SeleniumRunnerParameters(args[0]);