You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While having convinience derives can be helpful, deriving traits that
are not used in similar situations (`Clap` and `ArgEnum`) can make
things harder
- From a user, derives are opaque and create uncertainty on how to use
the API if not kept crystal clear (deriving a name gives you the trait
by that name)
- This makes documentation harder to write and read
- You can use types in unintended places, which is made worse for crate
APIs because changing this breaks compatibility.
Fixesclap-rs#2584
Please complete the following tasks
Rust Version
rustc 1.53.0 (53cb7b09b 2021-06-17)
Clap Version
3be79b9
Minimal reproducible code
Naively just using the "magic" struct
Intentionally creating subcommand
Steps to reproduce the bug with the above code
Can use arg in wrong case
Can use subcommand in wrong case
Actual Behaviour
API can be used in the wrong way
Expected Behaviour
Compile errors
Additional Context
This is split out of #2005, see
Debug Output
No response
The text was updated successfully, but these errors were encountered: