title: Is it possible to pass a flag to Gulp to have it run tasks in different ways?
body: <p>Normally in Gulp tasks look like this:</p>
  
  <pre><code>gulp.task('my-task', function() {
      return gulp.src(options.SCSS_SOURCE)
          .pipe(sass({style:'nested'}))
          .pipe(autoprefixer('last 10 version'))
          .pipe(concat('style.css'))
          .pipe(gulp.dest(options.SCSS_DEST));
  });
  </code></pre>
  
  <p>Is it possible to pass a command line flag to gulp (that's not a task) and have it run tasks conditionally based on that? For instance</p>
  
  <pre><code>$ gulp my-task -a 1
  </code></pre>
  
  <p>And then in my gulpfile.js:</p>
  
  <pre><code>gulp.task('my-task', function() {
          if (a == 1) {
              var source = options.SCSS_SOURCE;
          } else {
              var source = options.OTHER_SOURCE;
          }
          return gulp.src(source)
              .pipe(sass({style:'nested'}))
              .pipe(autoprefixer('last 10 version'))
              .pipe(concat('style.css'))
              .pipe(gulp.dest(options.SCSS_DEST));
  });
  </code></pre>