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 GNU and POSIX standards for how to do this.

... work in progress


CategoryShell