[Pkg-javascript-commits] [uglifyjs] 95/491: reinstate `describe_ast()` on CLI (#1996)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:25 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.

commit 7d3b941e6e12883e9631655d69ae99b1f1dde3db
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date:   Wed May 24 02:30:09 2017 +0800

    reinstate `describe_ast()` on CLI (#1996)
    
    fixes #1995
---
 bin/uglifyjs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/uglifyjs b/bin/uglifyjs
index 0194269..822e926 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));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list