Multiple commandline switches

I have a script that has commandline switches that work no problem. But i don't know how to enable it to have multiple switches at one time. So I'd want

 myscript -h -o 

or even

myscript -ho

but i'm having no luck incorporating this. I tried shifting but i'm not getting it. Thanks

---------- Post updated at 01:10 AM ---------- Previous update was at 12:57 AM ----------

just found getopts...think i found my answer