`optparse` is deprecated.  Hopefully it's not too much of a stretch to reimplement with with `argparse`.