-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Multiple set to false fails #2233
Comments
Well, this sounds strange but currently the order of clap's settings does matter. This works: let app = App::new("test").arg(
Arg::new("foo")
.long("foo")
.multiple(false)
.takes_value(true)
); That's becase disable |
We need to fix all these inter linking changes. |
@pksunkara I don't think currently removing all interlinking changes is a good idea, it may introduces quite a bit resistance on upgrading v2 to v3. What's about changing the behaviour of setting false. I mean enabling This changes maintains backward compatibility, since nobody(I guess...) depends on the behaviour that disabling |
We will have https://github.com/pksunkara/cargo-up ready. We shouldn't concern ourselves with either backward compatibility or user churn. But we can definitely improve the user experience by asserting that |
Opinion syncing: so removing all interlinking flags, and check them in |
Yup. |
Make sure you completed the following tasks
Code
Steps to reproduce the issue
Run
cargo run -- --foo=bar
orcargo run -- --foo bar
Version
Actual Behavior Summary
using
=
it crashes withwhereas without it, it fails with
This currently hinders Deno to upgrade clap to 3.0.0-beta.2. denoland/deno#8485
Expected Behavior Summary
It should behave as it did in v2, so not fail and give the actual value
Additional context
Add any other context about the problem here.
Debug output
Debug Output without =
Debug Output with =
The text was updated successfully, but these errors were encountered: