def main(args):
  if len(args) != 2:
    print("Usage: python project-diff.py [path-to-project-1] [path-to-project-2]")
    return

  dir1 = args[0]
  dir2 = args[1]

  project1 = collect_text_files(dir1)
  project2 = collect_text_files(dir2)

  files_only_in_1 = []
  files_only_in_2 = []
  files_in_both = []
  perform_venn_analysis(set(project1.keys()), set(project2.keys()), files_only_in_1, files_only_in_2, files_in_both)

  if len(files_only_in_1) > 0:
    print("The following files are only in Project 1:")
    for file in files_only_in_1:
      print("  " + file)
    print("")

  if len(files_only_in_2) > 0:
    print("The following files are only in Project 2:")
    for file in files_only_in_2:
      print("  " + file)
    print("")

  print(str(len(files_in_both)) + " files in both projects.")
  print("")

  files_in_both.sort()
  files_with_diffs = []

  for file in files_in_both:
    text_1 = project1[file]
    text_2 = project2[file]
    diff = perform_diff(text_1, text_2)
    if len(diff) > 0:
      files_with_diffs.append(file)
      print("There's a difference in " + file)
      print("\n".join(diff))
      print("")

  if len(files_with_diffs) == 0:
    print("No files with text differences.")
  else:
    print("Diffs were in the following files:")
    print("\n".join(files_with_diffs))

  print("")