I'm using bash. How can I exit with a non-success code if my script has the wrong number of arguments?
I have this
#!/bin/bash
if [ "$#" -ne 3 ]; then
echo "Should be three parameters to this script -- [CWD driver-directory side-file]"
fi
but then the script continues.