glencoesoftware / raw2ometiff

Raw format to OME-TIFF converter
GNU General Public License v2.0
48 stars 22 forks source link

Fix `--version` #75

Closed melissalinkert closed 2 years ago

melissalinkert commented 2 years ago

@muhanadz noticed that raw2ometiff --version throws a NullPointerException and does not print the version. This problem was introduced in https://github.com/glencoesoftware/raw2ometiff/pull/65.

With this PR, raw2ometiff --version should work again and the test added in 1bae732 should pass. To make sure the test would have caught this problem, check out this PR's branch locally and revert 7e0692c, then run ./gradlew clean build and make sure testVersionOnly fails.