From 6fb6cd66ad60cb3f12ce7a03128a5368b6cec4ea Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Tue, 2 May 2017 00:27:19 +0800 Subject: [PATCH] restore report of supported options 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") {