title: Passing arguments to an Rspec SpecTask
body: <p>Rake allows for the following syntax:</p>
  
  <pre><code>task :my_task, :arg1, :arg2 do |t, args|
    puts "Args were: #{args}"
  end
  </code></pre>
  
  <p>I'd like to be able to do the same, but with RSpecs SpecTask.</p>
  
  <p>The following unfortunately fails:</p>
  
  <pre><code>desc "Run example with argument"
  SpecTask.new('my_task'), :datafile do |t, args|
    t.spec_files = FileList['*_spec.rb -datafile=#{args}']
    t.spec_opts = ["-c -f specdoc"]
  end
  </code></pre>
  
  <p>Is it possible to achieve this with a SpecTask, or is there an alternative approach?</p>