Cannot pass negative number as option #651
Labels
branch/2.1.x
Issue for a branch
branch/3.0.x
Issue for a branch
for/backport
For backporting
type/bug
Is a bug report
Milestone
Uh oh!
There was an error while loading. Please reload this page.
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...
The text was updated successfully, but these errors were encountered: