def _flag_checks()

in benchmark.py [0:0]


def _flag_checks():
  """Verify flags requirements."""
  if (not FLAGS.benchmark_config and FLAGS.bazel_commits and
      FLAGS.project_commits and len(FLAGS.bazel_commits) > 1 and
      len(FLAGS.project_commits) > 1):
    raise ValueError(
        'Either --bazel_commits or --project_commits should be a single element.'
    )

  if FLAGS.aggregate_json_profiles and not FLAGS.collect_json_profile:
    raise ValueError('--aggregate_json_profiles requires '
                     '--collect_json_profile to be set.')