aboutsummaryrefslogtreecommitdiff
path: root/bin/uglifyjs
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-05-24 02:30:09 +0800
committerGitHub <noreply@github.com>2017-05-24 02:30:09 +0800
commit7d3b941e6e12883e9631655d69ae99b1f1dde3db (patch)
tree164c2838c00e0e5b1117361bfd010bb0a231705f /bin/uglifyjs
parente95052a4239dd35523484ace4c06c78ff655b272 (diff)
downloadtracifyjs-7d3b941e6e12883e9631655d69ae99b1f1dde3db.tar.gz
tracifyjs-7d3b941e6e12883e9631655d69ae99b1f1dde3db.zip
reinstate `describe_ast()` on CLI (#1996)
fixes #1995
Diffstat (limited to 'bin/uglifyjs')
-rwxr-xr-xbin/uglifyjs1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs
index 0194269d..822e9266 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -24,6 +24,7 @@ var options = {
program.version(info.name + ' ' + info.version);
program.parseArgv = program.parse;
program.parse = undefined;
+if (process.argv.indexOf("ast") >= 0) program.helpInformation = UglifyJS.describe_ast;
program.option("-p, --parse <options>", "Specify parser options.", parse_js("parse", true));
program.option("-c, --compress [options]", "Enable compressor/specify compressor options.", parse_js("compress", true));
program.option("-m, --mangle [options]", "Mangle names/specify mangler options.", parse_js("mangle", true));