We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are at least 2 problems with @SubParameter
public
Example code:
public class TuneOptions { @Parameter(names = "--tune", arity = 4, required = true) private TuneVariable tuneVariable; public static class TuneVariable { @SubParameter(order = 0) public String variableName; @SubParameter(order = 1) public double min; @SubParameter(order = 2) public double max; @SubParameter(order = 3) public double step; } }
In the above code:
variableName, min, max, step
--tune L 0 1 0.01
0
double
The text was updated successfully, but these errors were encountered:
I'd like to work on this
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
There are at least 2 problems with @SubParameter
public
fields of a classExample code:
In the above code:
variableName, min, max, step
have to bepublic
(otherwise there is an exception) which is not good and is different from usual jCommander behavior--tune L 0 1 0.01
yield exception as0
is treated as string and is not converted todouble
The text was updated successfully, but these errors were encountered: