Rearrange the order of option parsing