3 ms·
Even more fun, Python printed --version to stderr before 3.4, then to stdout.
by jjgreen 3y ago
Even more fun, Python printed --version to stderr before 3.4, then to stdout.
- Calzifer 3y agoJava (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]