Simplify Alias API / code #4421
Labels
A-builder
Area: Builder API
C-enhancement
Category: Raise on the bar on expectations
M-breaking-change
Meta: Implementing or merging this will introduce a breaking change.
S-waiting-on-design
Status: Waiting on user-facing design to be resolved before implementing
Currently, we have visible and non visible aliases along with singular and multiple methods.
One way of simplifying this is if we had a
Alias<T>
that had ahide(yes: bool)
function.Arg::alias
would implicitly convert strings toAlias
or people could directly construct an alias and set it to hidden.This would change
Arg::alias
from hidden to visible. The reason I'm suggesting that is to be consistent with our hiding of content. Maybe avisible
would be justified, unsure.The text was updated successfully, but these errors were encountered: