How to do completion properly with clap derive? #4825
Unanswered
HuakunShen
asked this question in
Q&A
Replies: 1 comment 2 replies
-
What do you mean by this? Was there a compiler error? Or some kind of runtime error? If so, could you include it? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am following this tutorial https://github.com/clap-rs/clap/blob/master/clap_complete/examples/completion-derive.rs
I could run the example, but I can't run the same script in my project, does it require some specific dependencies?
Although the example works, it only works for subcommand. Flag completion doesn't work for me.
How can I make completion work properly? Did not find a similar discussion yet.
Environment:
Beta Was this translation helpful? Give feedback.
All reactions