Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --version option #66

Closed
bernhardreiter opened this issue Feb 25, 2022 · 3 comments
Closed

Add --version option #66

bernhardreiter opened this issue Feb 25, 2022 · 3 comments

Comments

@bernhardreiter
Copy link
Collaborator

Would be nice to use -v and --version to see which version of the binary I have.

technical considerations

We need one way to build this for released versions (if they are tagged and this is git we could take it from the tag)
and for development versions.

@sebix
Copy link

sebix commented Feb 25, 2022

Why -v? That is often used for verbose. -V would be another common short form of --version

@bernhardreiter
Copy link
Collaborator Author

Good point, I guess -V is also fine. However https://www.gnu.org/prep/standards/standards.html#g_t_002d_002dversion does not have a standard short form for --version, maybe the long form is enough, as it is a rarely used options anyway.

Fadiabb pushed a commit that referenced this issue Apr 6, 2022
    * Add flag to display the version of the binary file.
    * It distinguishes between released versions and development ones
    * #66
Fadiabb pushed a commit that referenced this issue Apr 7, 2022
* Move the function of constructing the version of the binary file to
"util"
* Adjust the "checker", "provider" and "uploader" files to use it.
* #66
@bernhardreiter
Copy link
Collaborator Author

Implemented with #89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants