title: How to invoke rake with non-rake parameters
body: <p>I have a rake task that creates diagrams:</p>
  
  <pre><code>task :diagram do
    `rake erd filetype=dot disconnected=true`
  end
  </code></pre>
  
  <p>The execution of this task is quite slow and I guess it is because in the nested rake-invoke statement the whole rails environment is loaded again.</p>
  
  <p>I wanted to use <code>Rake::Task['...'].invoke</code> instead. But the <code>erd</code> task has some non-rake arguements (<code>filetype=dot</code> etc.), which don't seem to work with the <code>invoke</code> method.</p>
  
  <p>Is there a way to pass those arguments to rake so that I can use the proper rake invoke syntax. </p>