diff --git a/components/bio-formats-tools/src/loci/formats/tools/TiffComment.java b/components/bio-formats-tools/src/loci/formats/tools/TiffComment.java index 1760de361c8..506dac3ba1d 100644 --- a/components/bio-formats-tools/src/loci/formats/tools/TiffComment.java +++ b/components/bio-formats-tools/src/loci/formats/tools/TiffComment.java @@ -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"); @@ -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");