How can a grunt plugin wrap another plugin

I was wondering how a Grunt plugin could wrap around another.

For example, a plugin could set some parameter and pass them while running the other Grunt task.

See How can I share parameters across multiple tasks? in the docs.