How do I process options in a bash script?

For example, how do I code my bash script to accept a bunch of options like

foobar -a --busy --include something

First up, there are some http://www.gnu.org/software/libtool/manual/libc/Argument-Syntax.html][GNU and POSIX standards for how to do this.


CategoryShell