class RuboCop::Options

def long_opt_symbol(args)

e.g. [..., '--auto-correct', ...] to :auto_correct.
Finds the option in `args` starting with -- and converts it to a symbol,
def long_opt_symbol(args)
  long_opt = args.find { |arg| arg.start_with?('--') }
  long_opt[2..-1].sub(/ .*/, '').gsub(/-/, '_').to_sym
end