@SuppressWarnings("squid:S106")
  public static void sketchFile(String inputFile, String outputFile)
      throws IOException, MetadataException {
    ISchemaFile sf = null;
    try (PrintWriter pw = new PrintWriter(new FileWriter(outputFile, false))) {
      sf = SchemaFile.loadSchemaFile(SystemFileFactory.INSTANCE.getFile(inputFile));
      String res = ((SchemaFile) sf).inspect(pw);
      System.out.println(res);
    } finally {
      if (sf != null) {
        sf.close();
      }
    }
  }
create the commandline options.

@return object Options
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/schema/PBTreeFileSketchTool.java