Lines Matching refs:_PyOS_optind
41 int _PyOS_optind = 1; /* index into argv array */ variable
49 _PyOS_optind = 1; in _PyOS_ResetGetOpt()
62 if (_PyOS_optind >= argc) in _PyOS_GetOpt()
65 else if (wcscmp(argv[_PyOS_optind], L"/?") == 0) { in _PyOS_GetOpt()
66 ++_PyOS_optind; in _PyOS_GetOpt()
71 else if (argv[_PyOS_optind][0] != L'-' || in _PyOS_GetOpt()
72 argv[_PyOS_optind][1] == L'\0' /* lone dash */ ) in _PyOS_GetOpt()
75 else if (wcscmp(argv[_PyOS_optind], L"--") == 0) { in _PyOS_GetOpt()
76 ++_PyOS_optind; in _PyOS_GetOpt()
80 else if (wcscmp(argv[_PyOS_optind], L"--help") == 0) { in _PyOS_GetOpt()
81 ++_PyOS_optind; in _PyOS_GetOpt()
85 else if (wcscmp(argv[_PyOS_optind], L"--version") == 0) { in _PyOS_GetOpt()
86 ++_PyOS_optind; in _PyOS_GetOpt()
90 opt_ptr = &argv[_PyOS_optind++][1]; in _PyOS_GetOpt()
109 fprintf(stderr, "unknown option %ls\n", argv[_PyOS_optind - 1]); in _PyOS_GetOpt()
116 if (_PyOS_optind >= argc) { in _PyOS_GetOpt()
118 argv[_PyOS_optind - 1]); in _PyOS_GetOpt()
121 _PyOS_optarg = argv[_PyOS_optind++]; in _PyOS_GetOpt()
144 if (_PyOS_optind >= argc) { in _PyOS_GetOpt()
151 _PyOS_optarg = argv[_PyOS_optind++]; in _PyOS_GetOpt()