spring-shell
spring-shell copied to clipboard
Commands offered when value should be expected
public void command(
@ShellOption(ValueProvider = AgeProvider.class) Integer age,
@ShellOption(ValueProvider = NameProvider.class) String name
) { ...
when I do command --age TAB
the autocomplete system correctly shows the options returned by the ValueProvider AgeProvider
, but it also shows autocomplete options for the next argument key e.g. --help
or --name
. This should not happen, because age has arity 1 and so --age
must be followed by exactly 1 value from the ValueProvider.
--age TAB
others:
--help
--name
Values:
1
2
3
command --age 1
is correct.
command --age --name --help
is clearly nonsense, but legitimate according to tab-completion.
any view on this from triage?
Duplicate of #511?