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
When using Legacy Annotations, I am able to annotate a method as such:
@ShellMethod(value = "Exit the shell.", key = {"logout","quit", "exit"})
and the corresponding help message properly parses the multiple method aliases:
logout, quit, exit: Exit the shell.
However, when using the new @Option annotation, the help and parsing get garbled:
@Command(description = "Exit the shell", alias = {"logout","quit", "exit"})
logout, logout quit exit: Exit the shell
as you can see, all the aliases are crammed together into a single space-separated alias.
Am I misunderstanding the alias property? If so, what is the correct way to accomplish what is currently available in the Legacy Annotation? NOTE: I have also tried using an array of command values and I get a similar result:
@Command(description = "Exit the shell", command = {"logout","quit", "exit"})
yields
logout quit exit: Exit the shell
Using Spring Shell v3.1.1
The text was updated successfully, but these errors were encountered:
- Fix alias command extraction from existing @command
annotations so that we actually get multiple aliases
defined if more than one defined on a method level.
- Fix rendering issue in a help stg template when
multiple aliases exists.
- Backport #796
- Fixes#798
Uh oh!
There was an error while loading. Please reload this page.
When using Legacy Annotations, I am able to annotate a method as such:
@ShellMethod(value = "Exit the shell.", key = {"logout","quit", "exit"})
and the corresponding help message properly parses the multiple method aliases:
logout, quit, exit: Exit the shell.
However, when using the new
@Option
annotation, the help and parsing get garbled:@Command(description = "Exit the shell", alias = {"logout","quit", "exit"})
logout, logout quit exit: Exit the shell
as you can see, all the aliases are crammed together into a single space-separated alias.
Am I misunderstanding the
alias
property? If so, what is the correct way to accomplish what is currently available in the Legacy Annotation? NOTE: I have also tried using an array ofcommand
values and I get a similar result:@Command(description = "Exit the shell", command = {"logout","quit", "exit"})
yields
logout quit exit: Exit the shell
Using Spring Shell v3.1.1
The text was updated successfully, but these errors were encountered: