Normalize help flags of tools in jdk?

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Thu Oct 5 16:11:58 UTC 2017


Hi,

I would like to normalize the help flags of the tools in jdk/bin.
java accepts -?, -h and --help. I think that's a good set the others
should support, too.

If this is appreciated, I would complete this webrev to cover 
all the cases where this is doable with acceptable effort:
http://cr.openjdk.java.net/~goetz/wr17/helpMessage/webrev/

Some tools exit with '1' after displaying the help message,
while most exit with '0'.  Is that intended?

See also the test I added, it's implemented similar to 
tools/launcher/VersionCheck.java.

Best regards,
  Goetz.




More information about the hotspot-dev mailing list