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") {