-
Notifications
You must be signed in to change notification settings - Fork 393
Closed
Labels
branch/2.1.xIssue for a branchIssue for a branchbranch/3.0.xIssue for a branchIssue for a branchfor/backportFor backportingFor backportingtype/bugIs a bug reportIs a bug report
Milestone
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...
Metadata
Metadata
Assignees
Labels
branch/2.1.xIssue for a branchIssue for a branchbranch/3.0.xIssue for a branchIssue for a branchfor/backportFor backportingFor backportingtype/bugIs a bug reportIs a bug report