          # File lib/rake.rb, line 2023
    2023:     def top_level
    2024:       standard_exception_handling do
    2025:         if options.show_tasks
    2026:           display_tasks_and_comments
    2027:         elsif options.show_prereqs
    2028:           display_prerequisites
    2029:         else
    2030:           top_level_tasks.each { |task_name| invoke_task(task_name) }
    2031:         end
    2032:       end
    2033:     end