get_my_opts now actually works as expected.
get_my_opts now actually works as expected.

Changed local to export, to make variables available.
Return OPTIND to indicate consumed arguments.
Removed debugging, added comments.

bluegraybox/examples,bluegraybox/examples,bluegraybox/examples,bluegraybox/examples,bluegraybox/examples,bluegraybox/examples