-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: Add --version
and -V
cli flag.
#187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
See my comments. If you think it's better to hardcode the version (I know it has benefits), then we should also automate its update through PDM: https://pdm-backend.fming.dev/metadata/#writing-dynamic-version-to-file.
Hi @pawamoy, is there anything I should change/update in this PR that you haven't mentioned yet? |
Didn't get time to review again, will do tomorrow 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes packages are installed without metadata information, so I guard against that by delaying retrieval of the version, and fallback on a 0.0.0 version. Let me know what you think 🙂
Hi,
This PR adds
--version
and-V
command line flags togriffe
.Should I also add the version information to the common options?
This PR also closes #186.
I also added two commits fixing a typo in a docstring and improving the return description.
Screenshot