class Thor::LineEditor::Readline

def completion_proc

def completion_proc
  if use_path_completion?
    proc { |text| PathCompletion.new(text).matches }
  elsif completion_options.any?
    proc do |text|
      completion_options.select { |option| option.start_with?(text) }
    end
  end
end