clap-rs / clap

A full featured, fast Command Line Argument Parser for Rust

Home Page:docs.rs/clap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clap_complete documentation should clearly point to CommandFactory

lolbinarycat opened this issue · comments

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

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