Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clap_complete documentation should clearly point to CommandFactory #5408

Open
2 tasks done
lolbinarycat opened this issue Mar 21, 2024 · 1 comment
Open
2 tasks done
Labels
C-enhancement Category: Raise on the bar on expectations

Comments

@lolbinarycat
Copy link

Please complete the following tasks

Clap Version

clap_complete 4.5.1

Describe your use case

i am using clap_complete for the first time, and it took me a bit of poking around to figure out how to get a Command from a Parser (plus having good enough intuition to guess that such a function must exist, otherwise i may have given up)

Describe the solution you'd like

add something like "for Parser users, see clap::CommandFactory::command" near the top of the clap_complete crate documentation.

Alternatives, if applicable

No response

Additional Context

No response

@lolbinarycat lolbinarycat added the C-enhancement Category: Raise on the bar on expectations label Mar 21, 2024
@epage
Copy link
Member

epage commented Mar 21, 2024

I'm curious, did you look at the example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Raise on the bar on expectations
Projects
None yet
Development

No branches or pull requests

2 participants