Babel should not silently remove unknown options after command… (#10698)

* chore: add test case

* chore: bump commander to 4.0.1

* fix: let commander.js throw on unknown options after args
This commit is contained in:
Huáng Jùnliàng
2019-11-12 18:25:24 -05:00
committed by Nicolò Ribaudo
parent ce070ce422
commit 7633f09479
8 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1 @@
arr.map(x => x * MULTIPLIER);

View File

@@ -0,0 +1,4 @@
{
"args": ["script.js", "--spruce-maps"],
"stderrContains": true
}

View File

@@ -0,0 +1 @@
error: unknown option '--spruce-maps'

View File

@@ -0,0 +1 @@
arr.map(x => x * MULTIPLIER);

View File

@@ -0,0 +1,4 @@
{
"args": ["--spruce-maps", "script.js"],
"stderrContains": true
}

View File

@@ -0,0 +1 @@
error: unknown option '--spruce-maps'