clap-rs / clap

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

feat(clap_complete): Add support for visible subcommand aliases #5549

Open shannmu opened 1 week ago

shannmu commented 1 week ago

related issue: https://github.com/clap-rs/clap/issues/3951 https://github.com/clap-rs/clap/issues/3951#issuecomment-2182830925

shannmu commented 1 day ago

I implemented these traits for CompletionCandidate to minimize changes to other code, so it might be tricky. I will modify these tricky parts or document as much as possible.