On Fri, 29 Jan 2021 05:33:19 GMT, Serguei Spitsyn <sspit...@openjdk.org> wrote:
> You are right. > So, in my suggestion just replace this block: > > ``` > if (gzlevel <= 0 || gzlevel > 9) { > err.println("Invalid "gz=" option: " + option); > usage(); > return; > } > ``` > > with: > > ``` > if (gzlevel == 0) { > usage(); > return; > } > ``` Thanks, just found there can be two prints of same error for option like gz=abc, I will change back:) ------------- PR: https://git.openjdk.java.net/jdk/pull/1712