Goint to use it in LLD.
In short this is PR30422, previously LLD did not show
aliases in help text. With this it is possible.
Ok. Going to rebase this after rL308293 though.
But just in case - the way we will choose for LLD (render all or some of aliases)
should not affect this patch (except if we choose possible way to ignore aliases
rendering at all, which I believe not an option).
Because this patch only implements aliases rendering, and hidden flags handling is
independent and already was implemented before this change.
ShowAliases flag allows to specify that alias should take HelpText from its
parent option. In that case we can have for example:
def auxiliary: S<"auxiliary">, HelpText<"Set DT_AUXILIARY field to the specified name">; def alias_auxiliary: Separate<["-"], "f">, Alias<auxiliary>;
and show both options in help:
--auxiliary <value> Set DT_AUXILIARY field to the specified name -f <value> Set DT_AUXILIARY field to the specified name
Without that change we would render only first line in --help.