Note: help and version output are generated by a naïve script which tries a few variants of
<command> --help, <command> -h etc. to find the command's help and version info.
Sometimes it gets lucky, sometimes it doesn't; if the output below looks wrong, it probably is.
javac -version (return code: 0)
javac --help (return code: 2)
javac: invalid flag: --help
Usage: javac <options> <source files>
use -help for a list of possible options