From 69b566365303583ab7fa0e89288b86dbebc5c676 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 2 May 2017 01:42:29 +0800 Subject: [PATCH] restore report of supported options (#1861) fixes #1859 --- bin/uglifyjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/uglifyjs b/bin/uglifyjs index e89b68a7..57e33d9b 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -205,6 +205,10 @@ function run() { console.error(line.slice(0, col).replace(/\S/g, " ") + "^"); } } + if (ex.defs) { + console.error("Supported options:"); + console.error(ex.defs); + } fatal("ERROR: " + ex.message); } if (program.output == "spidermonkey") {