          # File lib/rake.rb, line 2426
    2426:     def collect_tasks
    2427:       @top_level_tasks = []
    2428:       ARGV.each do |arg|
    2429:         if arg =~ /^(\w+)=(.*)$/
    2430:           ENV[$1] = $2
    2431:         else
    2432:           @top_level_tasks << arg unless arg =~ /^-/
    2433:         end
    2434:       end
    2435:       @top_level_tasks.push("default") if @top_level_tasks.size == 0
    2436:     end