#!/usr/bin/bash
is totally wrong
It should be either #!/bin/bash
or #!/usr/bin/env bash
. The latter
is preferred.
There are better ways to parse options
Check out bash builtin getopts
(it supports short options only) and
getopt
(long options as well but it is an external tool).