#!/usr/bin/env bash

NAME=""
COMMAND_FILE=""
ENV_FILE=""
MAIL_NOTIFICATION=""
NOTIFICATION_SCRIPT=""
PID=$$

USAGE="Usage: `basename $0` [-h] [-n name] [-e env-file] [-m mail-address] [-N notifier]"

while getopts hn:e:m:N: OPT; do
    case "$OPT" in
        h)
            echo $USAGE
            exit 0
            ;;
        n)
            NAME=$OPTARG
            ;;
        e)
            ENV_FILE=$OPTARG
            ;;
        m)
            MAIL_NOTIFICATION=$OPTARG
            ;;
        N)
            NOTIFICATION_SCRIPT=$OPTARG
            ;;
        \?)
            echo $USAGE >&2
            exit 1
            ;;
    esac
done
