Most options for the jmod tool should be last one wins, to be consistent
with the JDK tool convention, 8168149 [1]. Excludes is the only
repeatable option.

Given the existing usage of JOpt Simple, the most straight forward way
to achieve the last-one-wins behaviour is to drop the
withValuesSeparatedBy() from the OptionSpec have have the ValueConverters
themselves do the separation, if any. That way all options can be made
repeatable and the last element of the list of the option’s values will
be the final one on the command line.

http://cr.openjdk.java.net/~chegar/8168149.00/


-Chris.

[1] https://bugs.openjdk.java.net/browse/JDK-8168149

Reply via email to