Hacker News new | ask | show | jobs
by protomikron 891 days ago
An annoying thing is if CLI tools don't exit with non-zero if the tool is used incorrectly.

It's pretty standard to print the usage string if the tool is invoked with invalid arguments. However the program should then also exit with non-zero, otherwise it can be inconvenient to use in scripting.