code: public static void main(String[] args) {
          CommandLine cmd = parseArgs(args);
  
          String spaceId = cmd.getOptionValue("space-id");
          String manifestId = cmd.getOptionValue("manifest-id");
          String toDir = cmd.getOptionValue("to-dir");
  
          // do the stitching.
          try {
              DataSource dataSource = getDataSource(cmd);
              FileStitcherDriver driver = new FileStitcherDriver(dataSource);
  
              driver.stitch(spaceId, manifestId, new File(toDir));
  
          } catch (Exception e) {
              System.err.println("Error stitching content: " + e.getMessage());
              e.printStackTrace(System.err);
              System.exit(1);
          }
  
          System.out.println(
              "Successfully downloaded: " + spaceId + "/" + manifestId);
      }
docs: Main