vaclavsvejcar / headroom

Šī¸ Manager for license headers in source code files.
https://doc.norcane.com/headroom/latest/
BSD 3-Clause "New" or "Revised" License
48 stars 3 forks source link

Add version option #64

Closed vrom911 closed 3 years ago

vrom911 commented 3 years ago

Hey there,

Thanks again for a wonderful project! 🤗 I am using it currently to update all my copyrights, this is an extremely useful tool!

I noticed, that the --version option is missing, so what do you think about adding it? I see that the version info is provided in the --help, which is great! Though I think that the special option for that would be also convenient.

vaclavsvejcar commented 3 years ago

Hello,

first of all, thanks for your kind words, I'm happy that this tool helps someone. Speaking about the option, it's great idea, I'll add it to next version.

vaclavsvejcar commented 3 years ago

@vrom911 So I added two more options, --version that displays version info and --numeric-version that prints out version number only (can be useful for some programmatic version comparison).

$ headroom --version
headroom, v0.4.0.0 :: https://github.com/vaclavsvejcar/headroom

$ headroom --numeric-version
0.4.0.0
vrom911 commented 3 years ago

Wow, that's a really neat idea! Thanks so much for such a swift work on this feature! 🙌đŸŧ

vaclavsvejcar commented 3 years ago

You're welcome, I'm closing this now and it will be part of the v0.4.0.0 release 🙂