Details
-
New Feature
-
Resolution: Fixed
-
Minor
-
None
-
3.6
-
None
Description
Most applications out there have an option to show their version usually
with the -version or -v option.
Our applications lack that feature.
This is easy to fix as every application is started using the method ApplicationsUtils.startApp(Class c String[] args)
Could be fixed by including the following check before actually starting the application:
if (showVersion(args)) {
System.out.println(dk.netarkivet.common.Constants.getVersionString);
System.exit(0);
}
where showVersion(args) return true if "-version" or "-v" is found
in the args array.