Skip to content

clap_complete how to run dynamic.rs example #5806

Answered by enricoschaaf
enricoschaaf asked this question in Q&A
Discussion options

You must be logged in to vote

I solved the issue 🥳 Command::get_bin_name takes the name of the crate in my case and not the name of the binary written in Cargo.toml so the autocomplete script is wrong and never actually calls the binary. Looking at your code snippet made me figure it out 🙏🏽

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@epage
Comment options

epage Nov 5, 2024
Maintainer

@enricoschaaf
Comment options

@enricoschaaf
Comment options

@enricoschaaf
Comment options

Answer selected by enricoschaaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants