6 ms·
Java (since version 9) has -version which prints to stderr and --version which prints to stdout (also with slightly different content). Same for -showversion an
by Calzifer 3y ago
Java (since version 9) has -version which prints to stderr and --version which prints to stdout (also with slightly different content). Same for -showversion and --show-version and to get back on topic -help -h and -? print to stderr while --help prints to stdout.
https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html https://docs.oracle.com/en/java/javase/17/docs/specs/man/jav...
But since the more standard double-dash variants printing to stdout where added with Java 9 I would actually laud it as good backward compatibility.
- deleted 3y ago[deleted]