David Souther
David Souther

Reputation: 8174

Check GruntJS Verbosity Level

I have a library that handles its output independently, via an options object. I would like to be able to configure its verbosity level based on whether --debug or --verbose were passed on the CLI to Grunt. Is there a mechanism exposed to do so?

Upvotes: 0

Views: 40

Answers (1)

jgillich
jgillich

Reputation: 76219

var verbose = grunt.option('verbose') || grunt.option('debug');

Upvotes: 1

Related Questions