def METHOD_NAME(argv):
  parser = argparse.ArgumentParser(
      description='Script that checks package boundary violations in GN '
      'build files.')
  parser.add_argument('root_dir',
                      metavar='ROOT_DIR',
                      help='The root directory that contains all BUILD.gn '
                      'files to be processed.')
  parser.add_argument('build_files',
                      metavar='BUILD_FILE',
                      nargs='*',
                      help='A list of BUILD.gn files to be processed. If no '
                      'files are given, all BUILD.gn files under ROOT_DIR '
                      'will be processed.')
  parser.add_argument('--max_messages',
                      type=int,
                      default=None,
                      help='If set, the maximum number of violations to be '
                      'displayed.')
  args = parser.parse_args(argv)
  messages = CheckPackageBoundaries(args.root_dir, args.build_files)
  messages = messages[:args.max_messages]
  for i, message in enumerate(messages):
    if i > 0:
      print()
    print(message)
  return bool(messages)