Getopt is a simple-to-use and powerful library for parsing command line options. There exist bindings for many languages including Python. After I implemented the simplistic replacement of the Lumix MapTool in Python, I created a small template which may be reused in future applications.
Executable example code is hosted on GitHub.