Skip to content

Commit d10c118

Browse files
committed
Add help menu on ParseException
1 parent a1350d2 commit d10c118

File tree

1 file changed

+1
-0
lines changed
  • src/main/java/com/qdesrame/openapi/diff

1 file changed

+1
-0
lines changed

src/main/java/com/qdesrame/openapi/diff/Main.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public static void main(String... args) {
130130
} catch (ParseException e) {
131131
// oops, something went wrong
132132
System.err.println("Parsing failed. Reason: " + e.getMessage());
133+
printHelp(options);
133134
System.exit(2);
134135
} catch (Exception e) {
135136
System.err.println("Unexpected exception. Reason: " + e.getMessage() + "\n" + ExceptionUtils.getStackTrace(e));

0 commit comments

Comments
 (0)