Closed stuikomma closed 6 years ago
Thanks for the report! I published a fix for require
. A fresh npm install
should grab that fix.
I mistakenly added the cwd
option instead of using the existing base
option. Please use base
instead of cwd
. Fix for that here: https://github.com/gruntjs/grunt-cli/pull/122
Fixed with 1.3.1
When running
grunt --require coffeescript/register
I get the warningWarning: Task "coffeescript/register" not found. Use --force to continue.
https://github.com/gruntjs/grunt-cli/pull/117 introduced the cli options
cwd
andrequire
. They are accessed here, but they are treated as boolean flags, because they are not passed as known arguments tonopt
. This means that the arguments tocwd
andrequire
end up being interpreted as tasks names.I think they should be added to the
known
object like this: