Can bash's getopts function handle switches as words?

view story

http://www.linuxquestions.org – Hello friends I've written some bash scripts that uses switches with the bash's built-in getopts function. But the switches I am currently using are single letters types. Is it possible to use words with getopts to my bash scripts? For example instead of using a switch this way myscript -o filename I want to use a word switch like so myscript -out filename Thanks (HowTos)