Fixed erraneous removal of --optind in parse_generic_options().