EDITED:
I\'ve wrote code that uses OptionParser to handle command line input gracefully. I am facing two major hits.
I think Thor(https://github.com/wycats/thor) can resolve your problem more efficiently.