Hacker News new | ask | show | jobs
by sweeneyrod 1881 days ago
What is a program where `--help` is dangerous?
1 comments

For starters, anything that’s a shell script. Maybe add Perl to that equation too (I’ve seen all too many Perl scripts that didn’t properly check parameters).

I’ve also seen plenty of enterprise UNIX era software not follow GNUisms (which ‘-—help’ technically is). It’s all good and well if your just running GNU/Linux with modern DevOps tooling but don’t expect ‘-—help’ to work on every Solaris or BSD application. Not to mention relics like Informix and it’s tools.

Also anything hacked together in house should be treated with caution too. Open those files in $EDITOR and/or examine the README (if you’re lucky enough to have one) first because there’s no telling how lazy your predecessor might have been.

So yeah, over my career I’ve ran into numerous instances where ‘—-help’ might have had unforeseen consequences.