+ SLF4JBridgeHandler.removeHandlersForRootLogger();
+ SLF4JBridgeHandler.install();
+ }
+
+ 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;
+ }