code: def main():
      
  
      parser = argparse.ArgumentParser(description=__doc__)
      parser.add_argument(
          'reportfile', type=argparse.FileType('r'),
          help="test report file generated by `guesslang --test TESTDIR`")
      parser.add_argument(
          '-d', '--debug', default=False, action='store_true',
          help="show debug messages")
  
      args = parser.parse_args()
      config_logging(args.debug)
  
      report = json.load(args.reportfile)
      graph_data = _build_graph(report)
      index_path = _prepare_resources(graph_data)
      webbrowser.open(str(index_path))
docs: Report graph creator command line