use function-args to parseOptions rather then special-options-checking-code