Simon Percivall wrote: > > It might do you good to read the documentation instead of blindly > experimenting. > > Anyway, > > parser.add_option("", "--my-option", nargs=3) > > http://docs.python.org/lib/optparse-standard-option-actions.html
That won't help because by design of my program, I can't limit the number of arguments a user can pass to it. Ritesh -- http://mail.python.org/mailman/listinfo/python-list