clap-rs / clap

A full featured, fast Command Line Argument Parser for Rust
docs.rs/clap
Apache License 2.0
14.13k stars 1.03k forks source link

clap_complete documentation should clearly point to CommandFactory #5408

Open lolbinarycat opened 6 months ago

lolbinarycat commented 6 months ago

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

epage commented 6 months ago

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