I have a grunt task that looks at options with grunt.option(\'foo\'). If I\'m calling this task from grunt.task.run(\'my-task\'), how can I change thos
grunt.option(\'foo\')
grunt.task.run(\'my-task\')
If you can use task-based config options instead of grunt.option, this should work to give you more granular control:
grunt.config.set('task.options.foo', 'bar');