Open mamekoro opened 3 weeks ago
Huh, I thought we had an issue for this but I wonder if I'm thinking of #791 which is related but still different.
This and #791 are blocked on #3048 as we'd need to carry forward what argument was used to report it back.
Please complete the following tasks
Rust Version
rustc 1.81.0 (eeb90cda1 2024-09-04)
Clap Version
4.5.18
Minimal reproducible code
Steps to reproduce the bug with the above code
Actual Behaviour
Expected Behaviour
The value of
InvalidArg
should be"-n <NAME>"
because the user passed-n
, not--name
.Additional Context
If I use
parse_from
like this:I get the following error message:
Again, the long option
--name
is used.This can be confusing to users because the actual arguments and the arguments displayed in the error message are different.
Debug Output