gruntjs / gruntjs/grunt-cli

Can't have command-line argument "--module" in Node 12

Open
#132 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
697
Forks
245
PR merge metrics
No merged PRs in 30d

Description

Some of my Grunt tasks take a "--module=..." argument. Under Node 8.15.0, things work fine:

```
$ grunt --hello=asdf
Warning: Task "default" not found. Use --force to continue.

Aborted due to warnings.
$ grunt --module=asdf
Warning: Task "default" not found. Use --force to continue.
```

Under Node 10 and above, something goes wrong when I use "--module=...".

```
$ grunt --hello=asdf
Warning: Task "default" not found. Use --force to continue.

Aborted due to warnings.
$ grunt --module=asdf
/Users/kannan/.nodenv/versions/10.17.0/bin/node: bad option: --module=asdf
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.