Is there a reason you're rolling your own option parsing rather than using the well tested optparse or argparse? This regards the [`gitlab`](https://github.com/gpocentek/python-gitlab/blob/master/gitlab) CLI utility.