Closed ghost closed 9 years ago
This only works when Pride is successful. I'd recommend something like this:
public static void main(String... args) {
System.exit(execute(args));
}
public static int execute(String... args) {
// ...
return exitValue;
}
This way you can call PrideCli.execute()
instead of main()
, and you always get back a proper exit value.
This change would help calling Pride from another JVM application