From f6c805ae1d7ffe76f71d3deaff2f49a6526bbd7b Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 16 May 2017 06:34:32 +0800 Subject: print package name alongside version in CLI (#1946) fixes #1945 --- bin/uglifyjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin/uglifyjs') diff --git a/bin/uglifyjs b/bin/uglifyjs index 65b761c6..0194269d 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -21,8 +21,7 @@ var options = { compress: false, mangle: false }; -program._name = info.name; -program.version(info.version); +program.version(info.name + ' ' + info.version); program.parseArgv = program.parse; program.parse = undefined; program.option("-p, --parse ", "Specify parser options.", parse_js("parse", true)); -- cgit v1.2.3