class RuboCop::OptionsValidator

def validate_parallel_with_combo_option

def validate_parallel_with_combo_option
  combos = {
    auto_gen_config: '-P/--parallel uses caching to speed up execution, ' \
                     'while --auto-gen-config needs a non-cached run, ' \
                     'so they cannot be combined.',
    fail_fast: '-P/--parallel cannot be combined with -F/--fail-fast.',
    auto_correct: '-P/--parallel cannot be combined with --auto-correct.'
  }
  combos.each do |key, msg|
    raise OptionArgumentError, msg if @options.key?(key)
  end
end