Skip to content

Commit

Permalink
Exit after printing version
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Dec 12, 2024
1 parent 47661c2 commit b8d3ae1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static void main(String[] args) throws FormatException, IOException {
System.out.println(" terminate reading from stdin.");
System.out.println();
System.out.println("Additional options:");
System.out.println(" -version: print the library version");
System.out.println(" -version: print the library version and exit");
System.out.println(" -no-upgrade: do not perform the upgrade check");
System.out.println(" -debug: enable DEBUG-level logging");
System.out.println(" -trace: enable TRACE-level logging");
Expand Down Expand Up @@ -113,6 +113,7 @@ else if (newComment.equals("-")) {
}
else if (args[i].equals(CommandLineTools.VERSION)) {
CommandLineTools.printVersion();
return;
}
else if (args[i].equals("-debug")) {
DebugTools.setRootLevel("DEBUG");
Expand Down

0 comments on commit b8d3ae1

Please sign in to comment.