restore report of supported options

fixes #1859
This commit is contained in:
alexlamsl 2017-05-02 00:27:19 +08:00
parent ea9289771b
commit 6fb6cd66ad

View File

@ -205,6 +205,10 @@ function run() {
console.error(line.slice(0, col).replace(/\S/g, " ") + "^"); console.error(line.slice(0, col).replace(/\S/g, " ") + "^");
} }
} }
if (ex.defs) {
console.error("Supported options:");
console.error(ex.defs);
}
fatal("ERROR: " + ex.message); fatal("ERROR: " + ex.message);
} }
if (program.output == "spidermonkey") { if (program.output == "spidermonkey") {