fix option parsing error with '--' and the '-1' array lookup