File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/main/java/com/qdesrame/openapi/diff Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public static void main(String... args) {
90
90
String newPath = line .getArgList ().get (1 );
91
91
ChangedOpenApi result = OpenApiCompare .fromLocations (oldPath , newPath );
92
92
ConsoleRender consoleRender = new ConsoleRender ();
93
- if (logLevel .equals ("OFF" )) {
93
+ if (! logLevel .equals ("OFF" )) {
94
94
System .out .println (consoleRender .render (result ));
95
95
}
96
96
HtmlRender htmlRender = new HtmlRender ();
@@ -130,11 +130,9 @@ public static void main(String... args) {
130
130
} catch (ParseException e ) {
131
131
// oops, something went wrong
132
132
System .err .println ("Parsing failed. Reason: " + e .getMessage ());
133
- printHelp (options );
134
133
System .exit (2 );
135
134
} catch (Exception e ) {
136
135
System .err .println ("Unexpected exception. Reason: " + e .getMessage () + "\n " + ExceptionUtils .getStackTrace (e ));
137
- printHelp (options );
138
136
System .exit (2 );
139
137
}
140
138
You can’t perform that action at this time.
0 commit comments