api-reference-examples/java/te-tag-query/com/facebook/threatexchange/TETagQuery.java [1322:1345]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Override
    public void handle(
      String[] argsAsArray,
      int numIDsPerQuery,
      boolean verbose,
      boolean showURLs,
      DescriptorFormatter descriptorFormatter
    ) {
      boolean dryRun = false;
      boolean descriptorIDsFromStdin = false;
      DescriptorPostParameters  postParams = new DescriptorPostParameters();
      ArrayList<String> args = new ArrayList<String>(Arrays.asList(argsAsArray));

      while (args.size() > 0 && args.get(0).startsWith("-")) {
        String option = args.get(0);
        args.remove(0);

        if (option.equals("-h") || option.equals("--help")) {
          usage(0);

        } else if (option.equals("--dry-run")) {
          dryRun = true;

        } else if (option.equals("-N")) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



api-reference-examples/java/te-tag-query/com/facebook/threatexchange/TETagQuery.java [1482:1505]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Override
    public void handle(
      String[] argsAsArray,
      int numIDsPerQuery,
      boolean verbose,
      boolean showURLs,
      DescriptorFormatter descriptorFormatter
    ) {
      boolean dryRun = false;
      boolean descriptorIDsFromStdin = false;
      DescriptorPostParameters  postParams = new DescriptorPostParameters();
      ArrayList<String> args = new ArrayList<String>(Arrays.asList(argsAsArray));

      while (args.size() > 0 && args.get(0).startsWith("-")) {
        String option = args.get(0);
        args.remove(0);

        if (option.equals("-h") || option.equals("--help")) {
          usage(0);

        } else if (option.equals("--dry-run")) {
          dryRun = true;

        } else if (option.equals("-N")) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



