clean return code of parseOpts