ClusterLabs / ha_cluster_exporter

Prometheus exporter for Pacemaker based Linux HA clusters
Apache License 2.0
79 stars 35 forks source link

version CLI flag #158

Closed stefanotorresi closed 4 years ago

stefanotorresi commented 4 years ago

This PR adds a --version CLI flags that shows the version and build time embedded in the binary via ldflags.

It also deprecates the --enable-timestamp: it's still usable, but no longer advertised in the help message, and using it will issue a warning message on startup.

Furthermore, invoking the --help flag will no longer exit with a non-0 code.