diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-16 06:34:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-16 06:34:32 +0800 |
commit | f6c805ae1d7ffe76f71d3deaff2f49a6526bbd7b (patch) | |
tree | 1db6b42d820064e0527e8d72f2b950410955dad7 /bin | |
parent | 9464d3c20f60d7abe7fde5b48cc00a699566dbe7 (diff) | |
download | tracifyjs-f6c805ae1d7ffe76f71d3deaff2f49a6526bbd7b.tar.gz tracifyjs-f6c805ae1d7ffe76f71d3deaff2f49a6526bbd7b.zip |
print package name alongside version in CLI (#1946)
fixes #1945
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/uglifyjs | 3 |
1 files changed, 1 insertions, 2 deletions
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 <options>", "Specify parser options.", parse_js("parse", true)); |