-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update clap to v4 #498
Update clap to v4 #498
Conversation
Codecov ReportBase: 61.02% // Head: 59.87% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #498 +/- ##
==========================================
- Coverage 61.02% 59.87% -1.16%
==========================================
Files 80 80
Lines 1827 1817 -10
==========================================
- Hits 1115 1088 -27
- Misses 712 729 +17
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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!
bors r+ |
Thank you for the changes! |
Updating the
clap
crate to the just released v4.0. Am currently updating many of my own crates to v4 and found issue #496 as part of the Hacktoberfest event.I tried to keep the implementation as much as-is as possible, but especially clap's help message styling changed a lot with v4.
You might wonder the
AppSettings::DeriveDisplayOrder
being removed, but it is not needed anymore, as this is the new default now. Besides that, I used theValueEnum
derive a lot to have the possible values of enums provided to clap. This may have invaded some modules with clap use statements, so just let me know if you don't want that, and I'll think of something else.This is my first contribution to this project, so I just wanted to say: Thank you for this awesome project, I'm using it regularly for my project and love it 🚀.