aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard van Velzen <rvanvelzen@experty.com>2016-02-17 20:04:45 +0100
committerRichard van Velzen <rvanvelzen@experty.com>2016-02-17 20:04:45 +0100
commitbdd8e34f635db60765f1fd5c8b5355e71ee16095 (patch)
tree872d72ed188ec769739ce71a6ea5292041eb74e6
parent654743772514f5204d38bc7e7dba566b9dafedbd (diff)
downloadtracifyjs-bdd8e34f635db60765f1fd5c8b5355e71ee16095.tar.gz
tracifyjs-bdd8e34f635db60765f1fd5c8b5355e71ee16095.zip
Allow --no-* options to disable their respective parameter
Fixes #974 and #972
-rwxr-xr-xbin/uglifyjs2
1 files changed, 1 insertions, 1 deletions
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(", ");