gulpjs / gulpjs/gulp

gulp treats flags after -- as task names

Open
#2,383 13 comments 2 reactions 0 assignees View on GitHub
further investigation required help wanted
Dominant language
JavaScript
Stars
32.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

**What actually happened?**
```
>gulp default -- --version
[10:20:19] Using gulpfile [...]\gulpfile.js
[10:20:19] Task never defined: --version
[10:20:19] To list available tasks, try running: gulp --tasks
```

**What were you expecting to happen?**
Gulp should ignore all cli arguments after --

**Please post a sample of your gulpfile (preferably reduced to just the bit that's not working)**
N/A

**What version of gulp are you using?**

CLI version: 2.2.0
Local version: 4.0.2

**What versions of npm and node are you using?**
npm 6.2.0
node 10.9.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.