while getopts htn: OPTION
do
case ${OPTION} in
t) LIST='john mike smith' ;;
n) LIST='rob peter joe' ;;
h|*) show_usage
exit 0
;;
esac
done
shift $(($OPTIND - 1))
args=$*
above is a snippet of code. i would like to use more than one character in my options e.g fname lname should count as 2 options instead of "while getopts htn: OPTION"
would like something like "while getopts fname lname: OPTION
How do i get getopts to work in that form.