title: Pass Grunt config options from task.run
body: <p>Tried a few things and cannot seem to get this to work, but I would have thought it was something quite simple. I am trying to pass a variable|option into a Grunt initialize config when the task is run.</p>
  
  <p>At the minute I have two separate configs:</p>
  
  <pre><code>sass: {
    dev: {
      options: {
        style: 'expanded'
      },
      files: [{
        expand: true,
        cwd: source + 'scss/',
        src: '*.scss',
        dest: destination + 'css',
        ext: '.css'
      }]
    },
    production: {
      options: {
        style: 'compressed'
      },
      files: [{
        expand: true,
        cwd: source + 'scss/',
        src: '*.scss',
        dest: destination + 'css',
        ext: '.css'
      }]
    }
  }
  </code></pre>
  
  <p>As you can see, these are the same except the style option. What I would like to do is:</p>
  
  <pre><code>sass: {
    build: {
      options: {
        style: style
      },
      files: [{
        expand: true,
        cwd: source + 'scss/',
        src: '*.scss',
        dest: destination + 'css',
        ext: '.css'
      }]
    }
  }
  
  ...
  
  grunt.registerTask("sass", function () {
    grunt.task.run('sass:build:style=expanded');
  });
  </code></pre>
  
  <p>But I cannot work out how to pass the option from grunt.task.run to the initialize config in this way. Any Grunt experts know how to do this? Google didn't seem to have the answer either... Not sure if I'm approaching this wrong?</p>
  
  <p>Thanks for any help!</p>