-
-
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
short argument doesn't get parsed with allow_hyphen_values #3249
Comments
I've modified the example so
I'm surprised this worked in clap2 because of |
To make this more interesting: if you add regardless of that, so would you say we should just remove |
This was found with clap-rs#3249
This was found with clap-rs#3249
This was found with clap-rs#3249
v3.0.2 contains the fix for If it helps, what .setting(AppSettings::TrailingVarArg)
.arg(Arg::with_name("args").multiple(true)) (granted, this is clap2, about to port to clap3) |
I am a bit surprised that with |
If you are referring to with the command $ cargo run -- --root ./foo -n test https://localhost:5545/echo.ts The docs say
Keep in mind that this is related to
Its unclear to me what went into these design decisions. They predate my involvement. |
Alright, thanks for all the information. Will close since the issue has been cleared up |
Please complete the following tasks
Rust Version
1.57.0
Clap Version
3.0.0
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run -- --root ./foo -n test https://localhost:5545/echo.ts
Actual Behaviour
When i run the command, the output is:
Expected Behaviour
With clap 2.34.0 (with code adjuments to get it to compile, no actual changes to logic with exception of
.multiple_*
settings on arguments), i get this output:which is what i would expect
Additional Context
This is a blocker for Deno to upgrade to clap v3 (denoland/deno#13266)
Debug Output
The text was updated successfully, but these errors were encountered: