From bdd8e34f635db60765f1fd5c8b5355e71ee16095 Mon Sep 17 00:00:00 2001 From: Richard van Velzen Date: Wed, 17 Feb 2016 20:04:45 +0100 Subject: Allow --no-* options to disable their respective parameter Fixes #974 and #972 --- bin/uglifyjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/uglifyjs b/bin/uglifyjs index 1f449aa9..90197cc4 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -501,7 +501,7 @@ function normalize(o) { function getOptions(flag, constants) { var x = ARGS[flag]; - if (x == null) return null; + if (x == null || x === false) return null; var ret = {}; if (x !== "") { if (Array.isArray(x)) x = x.map(function (v) { return "(" + v + ")"; }).join(", "); -- cgit v1.2.3