Lines Matching defs:optind
49 private int optind = 0; // args index
261 return optind;
321 * - the first character of argv[optind] is not '-'
322 * - argv[optind] is the string "-"
323 * getopt() returns -1 without changing optind if
324 * - argv[optind] is the string "--"
325 * getopt() returns -1 after incrementing optind
331 if (optind >= argc || args[optind].equals("-")) {
333 } else if (args[optind].equals("--")) {
334 ++optind;
336 } else if (args[optind].charAt(0) != '-') {
341 String tmp = args[optind];
342 if (optind + 1 < args.length) {
343 System.arraycopy(args, optind + 1, args, optind,
344 args.length - (optind + 1));
369 * identified by argv[optind-1].
371 optopt = c = args[optind].charAt(_sp);
375 ? ((cp = parselong(optstring, args[optind].substring(2),
379 (longopt ? args[optind] : null));
384 if (args[optind].length() == ++_sp || longopt) {
385 ++optind;
399 * optind is incremented by 2. If the resulting value of
400 * optind is not less than argc, this indicates a missing
404 * option character in that element of argv, and optind is
417 if (!longopt && ((_sp + 1) < args[optind].length())) {
418 optarg = args[optind++].substring(_sp + 1);
424 optind++;
426 } else if (++optind >= argc) {
428 (longopt ? args[optind - 1] : null));
433 optarg = args[optind++];
440 (longopt ? args[optind] : null));
445 if (longopt || args[optind].length() == ++_sp) {
447 ++optind;