You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementing the required interface is kind of easy:
packageone.squeeze.pdftools.cli;
importpicocli.CommandLine;
/** * Provides a version for CLI commands based on the manifests implementation version. */publicclassManifestVersionProviderimplementsCommandLine.IVersionProvider {
@OverridepublicString[] getVersion() throwsException {
returnnewString[]{
"some version" + this.getClass().getPackage().getImplementationVersion()
};
}
}
My problem with this is, that using this provider on the root command does not seem to work. I don't know why.
Having an option to call
java -jar pdftools.jar --version
would be nice to figure out what version of the tool is installed.Currently CLI users can not use such a command to figure out what version of this tool is installed.
The text was updated successfully, but these errors were encountered: