+ SLF4JBridgeHandler.removeHandlersForRootLogger();
+ SLF4JBridgeHandler.install();
+ // java.util.logging.Logger.getLogger("").setLevel(java.util.logging.Level.FINEST);
+ }
+
+ private static int getStatusForError(final CommandException e) {
+ if (e instanceof UserErrorException) {
+ return 1;
+ } else if (e instanceof UnexpectedErrorException) {
+ return 2;
+ } else if (e instanceof IOErrorException) {
+ return 3;
+ } else if (e instanceof UntrustedKeyErrorException) {
+ return 4;
+ } else {
+ return 2;
+ }