Rework option parsing so we can have global options.