api-reference-examples/java/te-tag-query/com/facebook/threatexchange/TETagQuery.java [1369:1407]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          args.remove(0);

        } else if (option.equals("--tags")) {
          if (args.size() < 1) {
            usage(1);
          }
          postParams.setTagsToSet(args.get(0));
          args.remove(0);

        } else {
          boolean handled = this.commonPosterOptionCheck(option, args, postParams);
          if (!handled) {
            System.err.printf("%s %s: Unrecognized option \"%s\".\n",
              PROGNAME, _verb, option);
            usage(1);
          }
        }
      }

      if (args.size() > 0) {
        System.err.printf("%s %s: Extraneous argument \"%s\"\n", PROGNAME, this._verb, args.get(0));
        usage(1);
      }

      if (descriptorIDsFromStdin) {
        if (postParams.getDescriptorID() != null) {
          System.err.printf("%s %s: exactly one of -N and -n must be supplied.\n",
            PROGNAME, _verb);
          System.exit(1);
        }

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int lno = 1;
        try {
          while ((line = reader.readLine()) != null) {
            lno++;
            // In Java, line-terminators already stripped for us
            postParams.setDescriptorID(line);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



api-reference-examples/java/te-tag-query/com/facebook/threatexchange/TETagQuery.java [1525:1563]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          args.remove(0);

        } else if (option.equals("--tags")) {
          if (args.size() < 1) {
            usage(1);
          }
          postParams.setTagsToSet(args.get(0));
          args.remove(0);

        } else {
          boolean handled = this.commonPosterOptionCheck(option, args, postParams);
          if (!handled) {
            System.err.printf("%s %s: Unrecognized option \"%s\".\n",
              PROGNAME, _verb, option);
            usage(1);
          }
        }
      }

      if (args.size() > 0) {
        System.err.printf("%s %s: Extraneous argument \"%s\"\n", PROGNAME, this._verb, args.get(0));
        usage(1);
      }

      if (descriptorIDsFromStdin) {
        if (postParams.getDescriptorID() != null) {
          System.err.printf("%s %s: exactly one of -N and -n must be supplied.\n",
            PROGNAME, _verb);
          System.exit(1);
        }

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int lno = 1;
        try {
          while ((line = reader.readLine()) != null) {
            lno++;
            // In Java, line-terminators already stripped for us
            postParams.setDescriptorID(line);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



