cryptomator / cli

Cryptomator Command-Line Interface
GNU Affero General Public License v3.0
278 stars 40 forks source link

Adds --version option #57

Closed APengue1 closed 8 months ago

APengue1 commented 8 months ago

Resolves #37 Resolves #50

I have added the option to print the version and exit if the --version option is given. The printed version is the <Implementation-Version> specified in the pom.xml.

For example:

$ java -jar cryptomator-cli.jar --version
0.6.0-SNAPSHOT

Let me know what you think and if you have any suggestions for the proposed changes ! :)

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.

APengue1 commented 8 months ago

Use Version.class instead (fix at compile time)

Good suggestion.. you have refreshed my memory on using .class. It's been a while I haven't worked with Java, thank you :)