-
-
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
v3 App Options no longer work on subcommand arguments #1915
Comments
Thanks very @CreepySkeleton, that works nicely & Thanks for the advice. Any ideas on how to design it better ?
I'm going to have some wine now 🤣 |
Well, if you truly intend But I bet your intention was to allow multiple number of occurrences, not values.
I must have been a comedian in a previous life, don't you think? Even when my mind isn't up to it, my muscle memory knows better and bony fingers hit the right button. Unfortunately, I can't share the wine with you. Skeletons don't have much of taste, after all. |
Thank you! I'm going to pick live happily ever after Haha, well played.. True, You could give it go but it might stain your ribs: https://www.youtube.com/watch?v=1fzXmJyolfY&t=33 |
We are still working on changelog and documentation. You are not supposed to use v3 yet. |
Make sure you completed the following tasks
Code
Steps to reproduce the issue
cargo run -- -v bar --baz
error: Found argument '--baz' which wasn't expected, or isn't valid in this contextVersion
Actual Behavior Summary
cargo run -- bar
= 0 (expected)cargo run -- bar --baz
= 0 Hello World (expected)cargo run -- -v bar
= 1 (expected)cargo run -- -v bar --baz
error: Found argument '--baz' which wasn't expected, or isn't valid in this contextI'm using clap-rs in https://github.com/publicarray/BunnyCLI
Expected Behavior Summary
From run number 4 the output should be:
Additional context
Debug output
Compile clap with
debug
feature:The output may be very long, so feel free to link to a gist or attach a text file
Debug Output
The text was updated successfully, but these errors were encountered: