aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-05-02 01:42:29 +0800
committerGitHub <noreply@github.com>2017-05-02 01:42:29 +0800
commit69b566365303583ab7fa0e89288b86dbebc5c676 (patch)
tree162c0634ea53090402c3026be83df7198998d28a
parentea9289771b79c273347af72fba024ca29cfa035d (diff)
downloadtracifyjs-69b566365303583ab7fa0e89288b86dbebc5c676.tar.gz
tracifyjs-69b566365303583ab7fa0e89288b86dbebc5c676.zip
restore report of supported options (#1861)
fixes #1859
-rwxr-xr-xbin/uglifyjs4
1 files changed, 4 insertions, 0 deletions
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") {