You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I run the program, for example: java -classpath xxx ... className --priority VERY_HIGH, then it should be HIGH, actually it's still VERY_HIGH.
I pass the invalid priority, it output.
Exception in thread "main" com.beust.jcommander.ParameterException: Invalid value for -pr parameter. Allowed values:[UNKNOWN_JOB_PRIORITY, VERY_HIGH, HIGH, NORMAL, UNRECOGNIZED]
at com.beust.jcommander.converters.EnumConverter.convert(EnumConverter.java:38)
at com.beust.jcommander.converters.EnumConverter.convert(EnumConverter.java:13)
at com.beust.jcommander.JCommander.convertValue(JCommander.java:1472)
at com.beust.jcommander.ParameterDescription.addValue(ParameterDescription.java:238)
at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:895)
at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:870)
at com.beust.jcommander.JCommander.parseValues(JCommander.java:721)
at com.beust.jcommander.JCommander.parse(JCommander.java:340)
at com.beust.jcommander.JCommander.parse(JCommander.java:319)
The text was updated successfully, but these errors were encountered:
I create a JobPriorityConverter class, it's inherit from EnumConverter.
The
JobPriority
is generated by proto, it look like belowNow, I have a parameter.
But I run the program, for example: java -classpath xxx ... className --priority VERY_HIGH, then it should be HIGH, actually it's still VERY_HIGH.
I pass the invalid priority, it output.
The text was updated successfully, but these errors were encountered: