[Pkg-javascript-commits] [uglifyjs] 07/77: Use yargs instead of optimist.
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.18
in repository uglifyjs.
commit 6d1c3e1aec62021c475c51f21fd553b83147218c
Author: Kenneth Powers <ken at kenpowers.net>
Date: Thu Jan 1 01:04:54 2015 -0500
Use yargs instead of optimist.
---
bin/uglifyjs | 6 +++---
package.json | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/uglifyjs b/bin/uglifyjs
index fc33f96..bade20c 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -5,12 +5,12 @@
var UglifyJS = require("../tools/node");
var sys = require("util");
-var optimist = require("optimist");
+var yargs = require("yargs");
var fs = require("fs");
var path = require("path");
var async = require("async");
var acorn;
-var ARGS = optimist
+var ARGS = yargs
.usage("$0 input1.js [input2.js ...] [options]\n\
Use a single dash to read input from the standard input.\
\n\n\
@@ -129,7 +129,7 @@ if (ARGS.ast_help) {
}
if (ARGS.h || ARGS.help) {
- sys.puts(optimist.help());
+ sys.puts(yargs.help());
process.exit(0);
}
diff --git a/package.json b/package.json
index 9d1ee87..8e06660 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
"dependencies": {
"async" : "~0.2.6",
"source-map" : "0.1.34",
- "optimist": "~0.3.5",
+ "yargs": "~1.3.3",
"uglify-to-browserify": "~1.0.0"
},
"devDependencies": {
--
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