Properly account the datalen for option parsing