Hacker News new | ask | show | jobs
by sneak 2167 days ago
Why is “./script.sh -h” better than “less script.sh”?
2 comments

If you use zsh, you can use the help output to generate completions for your own scripts.

https://github.com/zsh-users/zsh-completions/blob/master/zsh...

I just spent three days explaining a bash script I authored to a tech lead who "doesn't know bash that well". If I had written in more help messages I probably could have preserved more of my time.