clap-rs / clap

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

Add Visible Aliases for PossibleValue #5480

Open naftulikay opened 2 months ago

naftulikay commented 2 months ago

Before this change, it was not possible to have visible aliases for PossibleValues, all aliases were hidden in help output. This change adds a new API for adding visible aliases and modifies the help generation scheme to display these visible aliases.

Tracking issue: #4416

epage commented 2 months ago

As a heads up, I'll be traveling for the next week or so and so it might take a bit before I get to this

epage commented 1 week ago

Hmm, when I marked #4416 as ready for implementation, I had overlooked that we needed a design conversation on the help output first. I ended up starting this review before I realized it. I would recommend we focus the conversation on the help output and have it in #4416 before focusing too much more on the implementation.