Sets up option parsing