System.err.println(workingDirectoryArg + " is not an existing directory.");
System.exit(1);
}
} else {
if (args.length < 1 || args[args.length - 1].startsWith("-")) {
new DevAppServerMain().printHelp(System.out);
System.exit(1);
}
workingDir = new File(args[args.length - 1]);
new DevAppServerMain().validateWarPath(workingDir);
}
return workingDir;
}