我有一个库,它通过options对象独立处理它的输出。我希望能够根据--debug或--verbose是否在CLI上传递给Grunt来配置它的详细级别。是否存在这样做的机制?
--debug
--verbose
发布于 2014-06-16 22:23:51
var verbose = grunt.option('verbose') || grunt.option('debug');
https://stackoverflow.com/questions/24250186
相似问题