You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In applications with a lot of commands, localizing argument descriptions is very tedious because you need to explicitly set descriptionKey on each option and positional parameter you wish to localize and ensure that the names match up with the keys in the resource bundle.
I propose a fallback resource bundle key that takes effect when both the description and descriptionKey attributes in @Option and @Parameters have not been set, similar to how the usage message already has pre-defined keys such as mycommand.usage.customSynopsis.
For a command purge with the --verbose option and files parameter the keys could be named git.option.--verbose or git.option.verbose and git.param.files.
If no mapping to that fallback key exists, it should do the same as it currently does when descriptionKey is missing and read the description attribute instead.
The text was updated successfully, but these errors were encountered:
In applications with a lot of commands, localizing argument descriptions is very tedious because you need to explicitly set
descriptionKey
on each option and positional parameter you wish to localize and ensure that the names match up with the keys in the resource bundle.I propose a fallback resource bundle key that takes effect when both the
description
anddescriptionKey
attributes in@Option
and@Parameters
have not been set, similar to how the usage message already has pre-defined keys such asmycommand.usage.customSynopsis
.For a command
purge
with the--verbose
option andfiles
parameter the keys could be namedgit.option.--verbose
orgit.option.verbose
andgit.param.files
.If no mapping to that fallback key exists, it should do the same as it currently does when
descriptionKey
is missing and read thedescription
attribute instead.The text was updated successfully, but these errors were encountered: