Use yargs instead of optimist.

This commit is contained in:
Kenneth Powers
2015-01-01 01:04:54 -05:00
parent 73cc0505f5
commit 6d1c3e1aec
2 changed files with 4 additions and 4 deletions

View File

@@ -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);
}

View File

@@ -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": {