Do not hardwire resetting of optind to 0, use the system's default value.