add doc for parseOpts