Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to set options to child process #46

Open
sentient opened this issue Jul 24, 2014 · 2 comments
Open

Possible to set options to child process #46

sentient opened this issue Jul 24, 2014 · 2 comments

Comments

@sentient
Copy link

I like to call a child Grunt file with different command line options.

grunt --myoption:test

Is this possible

@sentient
Copy link
Author

I was able to set it by using the process.env.VARIABLE
and have the child process pick that up.

@shama
Copy link
Owner

shama commented Jul 24, 2014

grunt hub --option=value should get passed into the child gruntfiles accessible with grunt.option('option'). There isnt a way to set options per gruntfile though. I'd be happy to accept a patch that implements an options key though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants