diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-02 01:42:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-02 01:42:29 +0800 |
commit | 69b566365303583ab7fa0e89288b86dbebc5c676 (patch) | |
tree | 162c0634ea53090402c3026be83df7198998d28a | |
parent | ea9289771b79c273347af72fba024ca29cfa035d (diff) | |
download | tracifyjs-69b566365303583ab7fa0e89288b86dbebc5c676.tar.gz tracifyjs-69b566365303583ab7fa0e89288b86dbebc5c676.zip |
restore report of supported options (#1861)
fixes #1859
-rwxr-xr-x | bin/uglifyjs | 4 |
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") { |