-
Notifications
You must be signed in to change notification settings - Fork 86
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
Auto add --version
to print program version
#32
Comments
This library is currently used most widely through build systems that are not Cargo based. I don't think that cargo package version is always guaranteed to match the version surfaced to users either. It's pretty trivial to add this flag yourself, so for now I'd like to hold off on this feature request. |
FWIW I didn't find it that trivial to add a |
I agree that it's not that trivial. Given a program that requires positional arguments, one could not simply add a Regarding |
Thanks @suluke that's useful. Would be great to see this integrated into the core library, with @homeworkprod's suggestion of |
Please automatically add
--version
to print program version:env!("CARGO_PKG_VERSION")
.Also I think it'd make sense if
--help
prints the version as well.The text was updated successfully, but these errors were encountered: