# check if options are valid for this program
# do this by parsing with the array we talked about before (DESCRIPTORS)
# usage: check_options OPT
check_options() {
local LOPT=$1; shift
local LLINE=$@
local myuse=VALID_FOR_${ME}
#-a|-s|-h|-q|-d|-r)
case $LOPT in
*)
for opt in ${!myuse}
do
if [ x${LOPT} = x${DESCRIPTIONS[$((opt-1))]} ]; then
return 0
fi
done
return 1
;;
esac
return 0
}