-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 an option to not panic on value*of() of non valid arguments #3621
Comments
It'd help if you explained why you don't want arguments validated.
What does the |
The use case is the same as cargo's, the |
Can you go into more detail. What are you doing, how, and why. Understanding what people are trying to accomplish with a request is important for shaping features.
The From the README
Example of something relying on this feature: https://docs.rs/clap/latest/clap/macro.command.html |
cargo has multiple applets and some codepaths are common and they rely now on
Sorry, I meant treat it as the |
Yes, I'm the one who ported cargo to clap3 and added I'm taking it from your comments that you are depending directly on cargo and are re-using its flag definitions and flag reading? |
yes. |
Huh, for some reason I created an issue for finding a longer term solution for cargo but I can't find it. Guess we'll use this for tracking that then. |
Thank you :) |
Please complete the following tasks
Clap Version
clap-3.1.8
Describe your use case
The
cargo
feature exposes is_valid() as workaround but it makes quite cumbersome to deal with code that has similar needs.Describe the solution you'd like
Adding a setting to simply return None would spare quite a bit of boilerplate.
Alternatives, if applicable
Make so the
cargo
feature re-enable the former behavior.Additional Context
No response
The text was updated successfully, but these errors were encountered: