Added PIZZAART-options birthdaycake, christmastree

This commit is contained in:
Gesina Schwalbe 2015-01-02 15:52:22 +01:00
parent e381c3fceb
commit 0cc2bc3919

View file

@ -10,8 +10,10 @@ PIZZASEND=
help() {
echo "pizza - sent small ASCII-Icons by Mail"
echo "--------------------------------------"
echo "Usage: -p Sent a pizza (default)"
echo " -l Sent a heart"
echo "Usage: -p Send a pizza (default)"
echo " -l Send a heart"
echo " -b Send happy birthday"
echo " -c Send merry christmas"
echo " -m <addr> Receivers address (non-optional)"
echo " -s <addr> Senders address, defaults to user@host"
echo " -h Print this help-message"
@ -23,7 +25,7 @@ if [ ! $1 ]; then
exit 1
fi
while getopts "plhm:s:" opt; do
while getopts "plbchm:s:" opt; do
case ${opt} in
p )
: ${PIZZAART:="pizza"}
@ -31,6 +33,12 @@ while getopts "plhm:s:" opt; do
l )
: ${PIZZAART:="heart"}
;;
b )
: ${PIZZAART:="birthdaycake"}
;;
c )
: ${PIZZAART:="christmastree"}
;;
m )
PIZZARCV="${OPTARG}"
;;