Allow visible aliases for PossibleValue #4416
Labels
A-builder
Area: Builder API
A-help
Area: documentation, including docs.rs, readme, examples, etc...
C-enhancement
Category: Raise on the bar on expectations
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
Please complete the following tasks
Clap Version
4.0.18
Describe your use case
Tealdeer has a parameter
-p, --platform <PLATFORM>
to select the platform. For historic reasons, this list must include "osx", but should also include the alias "macos". This alias should not be hidden, but should be visible.With Clap 3, this was implemented using
FromStr
:With Clap 4, I tried to migrate to
EnumValueParser
:This works, but the alias is not visible in help output or error messages.
Describe the solution you'd like
Since
Command
has both.alias(...)
and.visible_alias(...)
, would this be possible forPossibleValue
as well?Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: