guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!
http://guumaster.github.io/hostctl
MIT License
1.04k stars 45 forks source link

Display version number as part of --help #67

Closed spekulatius closed 4 years ago

spekulatius commented 4 years ago

Displaying the version number as part of --help could help to identify issues from different versions.

guumaster commented 4 years ago

cobra generate help info automatically, but there must be a way to add version info there.

spekulatius commented 4 years ago

Yeah, not sure how to get it in - but would be neat to have it

guumaster commented 4 years ago

Oh, I think this is already included in hostctl -v|--version also on the soon to be released hostctl info with a nice banner.

spekulatius commented 4 years ago

Oh yes. The updated version now includes the version number.