Hacker News new | ask | show | jobs
by gknoy 491 days ago
This seems like it would be solved completely by printing the error message ("option b unknown"), and then also printing the "--help" stuff. You can see the error inthe first line(s), so `head` will make that easy to see, but anyone trying to print the help text will get it.
1 comments

Yeah, except both the error and the --help are going to stderr. ;-)