if [ $# -lt 1 ]; then echo "${1:#missing arguments}" exit 1 else ${2:#action} fi