-
I've been troubleshooting this issue (at least I think it is). Can someone confirm why I get a mismatch here and not the value for "other"?
thread 'main' panicked at src/main.rs:22:30: Mismatch between definition and access of This was tested in master and 4.5.3. Features do not seem to matter. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
A similar example using derive works as expected:
|
Beta Was this translation helpful? Give feedback.
-
Note that See https://docs.rs/clap/latest/clap/_tutorial/chapter_2/index.html#subcommands |
Beta Was this translation helpful? Give feedback.
-
If I can reconstruct a simple example demonstrating the other perceived issue I'll create a new discussion or issue. This answers this at least. |
Beta Was this translation helpful? Give feedback.
Note that
"other"
is an argument on the"clean"
command and is not on the root command.See https://docs.rs/clap/latest/clap/_tutorial/chapter_2/index.html#subcommands