1required_arg() {
2    if [ -z "$1" ]; then
3        echo "Required argument $2 missing"
4        exit 1
5    fi
6}
7