martomi / chiadog

A watch dog providing a peace in mind that your Chia farm is running smoothly 24/7.
MIT License
457 stars 121 forks source link

Add switch to display version number #128

Closed centrd closed 3 years ago

centrd commented 3 years ago

add --version switch or have -h display the version when called

pieterhelsen commented 3 years ago

I'd like to implement it so that --version returns the output of git describe --tags. Output would look something like this when you are on the dev branch:

v0.5.0-4-gf064272

Where gf064272 is the id of the latest commit that you are on and 4 is presumably the number of commits ahead of main.

If you're on main, it would look like this:

v0.5.0

Thoughts?