Allow passing an opts object to parseSpec