-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Move to Clap 3 #2838
Comments
@tertsdiepraam did you try to port one ? |
Not yet. I have exams coming up but after that I hope to port a few |
I've just realized this is slightly more complicated than I thought. Because we call the clap apps from the utils in the I think the best way to do this is to open a separate branch and update them there. |
Bravo for this achievement :) |
We've been waiting for this for a long time: Clap 3 has been released (announcement)!
I think we can start porting the utils to Clap 3. Now, this should be fairly simple. However, some flags have changed meaning so we should test the changes thoroughly, especially with some complex arguments.
One of the features that we've been waiting for is
AppSettings::InferLongArgs
which should be turned on for (almost?) all utils to match GNU behaviour. Glancing the docs, I think thewrap_help
andcargo
features should be enabled by default for all utils.Before porting a util, please be sure to check out the Clap 2 to 3 migration guide in the changelog.
Clap now also has the derive feature. We could try this out with some smaller utils, but we should only use this if we can fully match the functionality of the builder API.
Resources
The text was updated successfully, but these errors were encountered: