Closed
Description
Given:
@ShellMethod("Add array numbers.")
public double addDoubles(@ShellOption(arity = 3) double[] numbers) {
return Arrays.stream(numbers).sum();
}
try
add-doubles 1.2 -2.1 4.4
or
add-doubles 1.2 "-2.1" 4.4
The returned error is "Unrecognised option '-2.1'"
It doesn't matter if you explicitly name an option. There must be a way to do this...