NIHVIVO-239 Permit a zero-length second argument from the command line - might happen in Linux.
This commit is contained in:
parent
32fe55f854
commit
2c0d76286d
1 changed files with 7 additions and 4 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue