Add basic option parsing.