class Thor::UnknownArgumentError::SpellChecker

def corrections

def corrections
  @corrections ||=
    error.unknown.flat_map { |unknown| spell_checker.correct(unknown) }.uniq.map(&:inspect)
end

def initialize(error)

def initialize(error)
  @error = error
end

def spell_checker

def spell_checker
  @spell_checker ||= DidYouMean::SpellChecker.new(dictionary: error.switches)
end