fix: minified should not accept optional argument (#10923)

This commit is contained in:
Huáng Jùnliàng 2019-12-25 13:13:23 -05:00 committed by Nicolò Ribaudo
parent 00758308ae
commit db3c31a8af
4 changed files with 7 additions and 2 deletions

View File

@ -74,8 +74,8 @@ commander.option(
booleanify, booleanify,
); );
commander.option( commander.option(
"--minified [true|false]", "--minified",
"Save as many bytes when printing.", "Save as many bytes when printing. (false by default)",
); );
commander.option( commander.option(
"--auxiliary-comment-before [string]", "--auxiliary-comment-before [string]",

View File

@ -0,0 +1 @@
() => 42;

View File

@ -0,0 +1,3 @@
{
"args": ["--out-file", "script2.js", "--no-comments", "--minified", "script.js"]
}

View File

@ -0,0 +1 @@
"use strict";(function(){return 42});