diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-24 02:30:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-24 02:30:09 +0800 |
commit | 7d3b941e6e12883e9631655d69ae99b1f1dde3db (patch) | |
tree | 164c2838c00e0e5b1117361bfd010bb0a231705f /bin/uglifyjs | |
parent | e95052a4239dd35523484ace4c06c78ff655b272 (diff) | |
download | tracifyjs-7d3b941e6e12883e9631655d69ae99b1f1dde3db.tar.gz tracifyjs-7d3b941e6e12883e9631655d69ae99b1f1dde3db.zip |
reinstate `describe_ast()` on CLI (#1996)
fixes #1995
Diffstat (limited to 'bin/uglifyjs')
-rwxr-xr-x | bin/uglifyjs | 1 |
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)); |