An implementation of http://pythonpracticeprojects.com/command-line-parser.html