himalaya --version doesn't specify what beta build it is
Closed this issue · 1 comments
echo-bravo-yahoo commented
~ ❯ himalaya --version
himalaya 1.0.0
while himalaya's in an extended 1.0.0 beta, it should probably report the beta release or commit hash.
soywod commented
--version
is automatically generated by clap
. I dived a bit into the subject, and I found that clap
can generate a short version (-V
) and a long version (--version
). I was able to customize the long one thanks to a custom build.rs
, and it looks like this:
$ himalaya -V
himalaya v1.0.0
$ himalaya --version
himalaya 1.0.0 linux gnu x86_64 git branch master rev d4b81a82944ca595071d459fd3f3fc8209dc3ac1