How to use the opts function from grunt

Find comprehensive JavaScript grunt.opts code examples handpicked from public code repositorys.

107
108
109
110
111
112
113
114
115

gr._current = NULL;
gr._noerror = TRUE;

// File base read
var pkgfile = argv.opts.config || gr._packagef;
if(fs.existsSync(pkgfile)) {
  grunt.config(Const.GruntPkg, grunt.file.readJSON(pkgfile));
}
fork icon2
star icon5
watch icon3