Example #1
0
 private void help(String... msgs) {
   String progName = System.getenv("PROG_NAME");
   if (StringUtils.isBlank(progName)) progName = "java -jar selenese-runner.jar";
   new DefaultConfig()
       .showHelp(new PrintWriter(System.out), PROG_TITLE, getVersion(), progName, msgs);
   exit(1);
 }
Example #2
0
 protected void exit(int exitCode) {
   this.exitCode = exitCode;
   log.info("Exit code: {}", exitCode);
   WebDriverManager.quitDriversOnAllManagers();
   if (!noExit) System.exit(exitCode);
 }