Use optparse to make it compatible with Python 2.6.