class Rake::Application

def select_tasks_to_show(options, show_tasks, value)

def select_tasks_to_show(options, show_tasks, value)
  options.show_tasks = show_tasks
  options.show_task_pattern = Regexp.new(value || '')
  Rake::TaskManager.record_task_metadata = true
end