def collect_command_line_tasks(args) # :nodoc:
      @top_level_tasks = []
      args.each do |arg|
        if arg =~ /^(\w+)=(.*)$/m
          ENV[$1] = $2
        else
          @top_level_tasks << arg unless arg =~ /^-/
        end
      end
      @top_level_tasks.push(default_task_name) if @top_level_tasks.empty?
    end
def collect_command_line_tasks(args) # :nodoc:
      @top_level_tasks = []
      args.each do |arg|
        if arg =~ /^(\w+)=(.*)$/m
          ENV[$1] = $2
        else
          @top_level_tasks << arg unless arg =~ /^-/
        end
      end
      @top_level_tasks.push(default_task_name) if @top_level_tasks.empty?
    end
Collect the list of tasks on the command line.  If no tasks are
 given, return a list containing only the default task.
 Environmental assignments are processed at this time as well.

 `args` is the list of arguments to peruse to get the list of tasks.
 It should be the command line that was given to rake, less any
 recognised command-line options, which OptionParser.parse will
 have taken care of already.