Is this same functionality available in the optparse output_handler? If so, I recommend using that