easygetopt is a python script that generates code for parsing command line arguments by just answering a couple of question.