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 is all programmatic.. so if you have set options on tasks before, you have done this programmatically.
just use grunt.initConfig({ ... }) to set options for tasks.
and if you already initialized, and need to change configuration afterwards, you can do something like
grunt.config.data.my_plugin.goal.options = {};
I am using it for my project and it works.