Enum as argument of command #5696
-
Hello, I want to implement enum argument to a command but I don't know how. This is my current code :
If I tried to directly use the enum in the Commands but I got
I can impl the 7 trait but it seems to weird to have to do that manually. Is there something I'm missing ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
How do you want |
Beta Was this translation helpful? Give feedback.
How do you want
Content
to behave on the command-line? As a positional value? If so, you can have it deriveValueEnum
.