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,10 +87,13 @@ public class SeleniumRunner {
|
|||
}
|
||||
|
||||
if (args.length == 2) {
|
||||
if (!"interactive".equalsIgnoreCase(args[1])) {
|
||||
usage("Invalid argument '" + args[1] + "'");
|
||||
String option = args[1].trim();
|
||||
if (option.length() > 0) {
|
||||
if (!"interactive".equalsIgnoreCase(args[1])) {
|
||||
usage("Invalid argument '" + args[1] + "'");
|
||||
}
|
||||
interactive = true;
|
||||
}
|
||||
interactive = true;
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue