gruntjs - command line arguments
gruntjs
Solution
You can use `grunt.option()` or more specifically:
`var env = grunt.option('env') || 'default';`
to grab the `env` argument or default to the string `'default'` if the argument is not present.
Problem
Where can I get a handle for command line arguments? eg `grunt dist --env=UAT`. How do I get the value for `env`? While I'm at it, how would I assign a default value to this if it's not set on the command line?