imagej / imagej2

Open scientific N-dimensional image processing :microscope: :sparkler:
https://imagej.net/
BSD 2-Clause "Simplified" License
1.2k stars 337 forks source link

Macro getVersion() return does NOT include daily build number #276

Closed rgaiacs closed 3 years ago

rgaiacs commented 3 years ago

When I go to Help > About ImageJ..., I get something like

imagej

The version number includes the daily build number. When I call the macro getVersion(), it does not provide the daily build number:

$ imagej --headless --console -eval "print(getVersion());" | tail -n 1
2.1.0/1.53h

What do you think about include the daily build number in the output of getVersion()?

imagejan commented 3 years ago

You can use IJ.getFullVersion() (in IJ1 macro language or any other supported scripting language):

$ imagej --headless --console -eval "print(IJ.getFullVersion)" | tail -n 1
rgaiacs commented 3 years ago

Thanks!