Custodio
Custodio

Reputation: 8934

Check if grunt is running in verbose mode

How can I know if grunt is running in verbose mode? Where is this configuration stored?

I'm writing a grunt plugin for a library that already implements the concept of verbose. As I'm not planning to put grunt as a dependency, the library won't have access to something like: grunt.verbose from the grunt.log api. The communication is mostly based on events.

I checked the source code of the log lib, but I was not able to find out how it is available on the grunt.registerMultiTask level.

Any hint is welcome.

Upvotes: 2

Views: 638

Answers (1)

raidendev
raidendev

Reputation: 2799

It's easy as grunt.option('verbose').

Upvotes: 3

Related Questions