Closed siavash13 closed 9 years ago
I believe your question may be outside of the scope of this project. But something like this might work:
gulp.task('default', function () {
run('echo Hello ' + process.argv[1]).exec()
.pipe(gulp.dest('output'))
})
I need to take an argument from the command line and use it in the gulp-file ? This is my
gulpfile.js
var run = require('gulp-run');How can I take an argument from Command line and pass it to this file , so that
hello argument1
is pprinted instead ofhello user
?