-
-
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
clap_derive casing change stringly type #2475
Comments
Agreed on not being in v3
|
I am not exactly sure what the expected behaviour should be. |
As a user solely of |
This adjusts names. Adjusting the derive naming (and re-naming) is left to clap-rs#2475. Fixes clap-rs#3335
With #3453, I expect |
Needing to re-think this
So what is
For example, this issue talks about the
short casing can be handled naiively (verbatim) but since long casing has to change anyways, we need a way to control that, right? value name seems the most likely to need a With this level of uncertainty, I'm going to hold off for now. |
#3709 proposes more specific rename attributes |
Maintainer's notes:
name
implies a user-facing meaning, causing confusion #3335 resolved, the remaining work isvalue_name
and notid
Please complete the following tasks
Rust Version
rustc 1.52.0 (88f19c6da 2021-05-03)
Clap Version
3.0.0-beta.2
Minimal reproducible code
It is a bit confusing that conflicts_with only work with the transformed string and the issue is that it only errors on runtime, during compile-time there is no error saying that that is incorrect. Can it be checked during compile-time? It is also confusing that I put
hello_world
in the struct but I need to usehello-world
in the option.Steps to reproduce the bug with the above code
cargo run
Actual Behaviour
Expected Behaviour
First, using
hello_world
should work instead ofhello-world
.Second, it should error during compile-time.
Additional Context
No response
Debug Output
The text was updated successfully, but these errors were encountered: