3 ms·
Why is “./script.sh -h” better than “less script.sh”?
by sneak 6y ago
Why is “./script.sh -h” better than “less script.sh”?
- mttpgn 6y agoI 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.
- soraminazuki 6y agoIf 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-completions-howto.org#completing-generic-gnu-commands https://github.com/zsh-users/zsh-completions/blob/master/zsh...