Jason Swett Jason Swett - 5 months ago 48
Bash Question

How to handle missing args in shell script

What's the "right" way to handle missing arguments in a shell script? Is there a pre-canned way to check for this and then throw an exception? I'm an absolute beginner.


getopts is useful here: getopts