GetOpts module for command line options


Feature suggestion courtesy of Simon Bushell:

"[...] you could take a look at the getopts module (which is in the Standard Library) to parse your command line arguments. A lot of the heavy code in your functions seems to involve teasing out the user input. GetOpts should make this a lot easier, and by wrapping your application into an object, you would be duplicating your code so much. Dive into Python has a pretty succint explanation of how it all works."