Hello list, I tried the optparse example from the python library reference and it doesn't seem to work..what am I doing wrong? I keep getting the "incorrect number of arguments" message although i use the correct number..
The example is here : http://docs.python.org/lib/optparse-putting-it-all-together.html if i edit the code and write: print parser.parse_args() I get: (<Values at 0xb7d3b9ec: {'verbose': False, 'filename': None}>, []) as you can see the argument list is empty I run the program as ./parser.py -q (i also tried 'python parser.py -q' but didnt help) Thank you in advance _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor