SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
https://askubuntu.com/questions/135214/pipable-command-to-print-in-color#135225
See also tput
and https://wiki.archlinux.org/index.php/Bash/Prompt_customization#Common_capabilities
for args in "$@"
do
case $args in
-e=*|--example=*)
VAR1="${args#*=}"
shift # past argument=value
;;
-t=*|--test=*)
TEST="${args#*=}"
shift # past argument=value
;;
-h|--help)
help
exit 1
;;
*)
# unknown option
echo -e "Error: unknown command \"$1\" for \"$(basename $0)\" \nRun '$(basename $0) --help' for usage."
exit 1
;;
esac
done