Home | History | Annotate | Download | only in dist

Lines Matching refs:optind

113    Otherwise, `optind' communicates from one call to the next
117 int optind = 0;
166 `--' can cause `getopt' to return EOF with `optind' != ARGC. */
229 The other is elements [last_nonopt,optind), which contains all
240 int top = optind;
286 first_nonopt += (optind - last_nonopt);
287 last_nonopt = optind;
299 first_nonopt = last_nonopt = optind = 1;
334 updating `optind' and `nextchar' so that the next call to `getopt' can
338 Then `optind' is the index in ARGV of the first ARGV-element
391 if (optind == 0)
406 if (first_nonopt != last_nonopt && last_nonopt != optind)
408 else if (last_nonopt != optind)
409 first_nonopt = optind;
414 while (optind < argc
415 && (argv[optind][0] != '-' || argv[optind][1] == '\0'))
416 optind++;
417 last_nonopt = optind;
425 if (optind != argc && !strcmp (argv[optind], "--"))
427 optind++;
429 if (first_nonopt != last_nonopt && last_nonopt != optind)
432 first_nonopt = optind;
435 optind = argc;
441 if (optind == argc)
446 optind = first_nonopt;
453 if ((argv[optind][0] != '-' || argv[optind][1] == '\0'))
457 optarg = argv[optind++];
464 nextchar = (argv[optind] + 1
465 + (longopts != NULL && argv[optind][1] == '-'));
484 optind][1] == '-'
485 || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1])))))
526 argv[0], argv[optind]);
528 optind++;
535 optind++;
546 if (argv[optind - 1][1] == '-')
555 argv[0], argv[optind - 1][0], pfound->name);
563 if (optind < argc)
564 optarg = argv[optind++];
569 argv[0], argv[optind - 1]);
589 if (!long_only || argv[optind][1] == '-'
594 if (argv[optind][1] == '-')
601 argv[0], argv[optind][0], nextchar);
604 optind++;
615 /* Increment `optind' when we start to process its last character. */
617 ++optind;
637 optind++;
651 optind++;
653 else if (optind == argc)
668 /* We already incremented `optind' once;
670 optarg = argv[optind++];
696 int this_option_optind = optind ? optind : 1;
740 if (optind < argc)
743 while (optind < argc)
744 printf ("%s ", argv[optind++]);