diff options
-rw-r--r-- | mongo-edu.js | 6 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mongo-edu.js b/mongo-edu.js index 5438dc1..eb49c8b 100644 --- a/mongo-edu.js +++ b/mongo-edu.js @@ -13,7 +13,7 @@ var mdbvideos = require('./lib/login'), path = require('path'), colors = require('colors'), inquirer = require('inquirer'), - optimist = require('optimist') + yargs = require('yargs') .usage('Usage: $0 [options]') .describe('d', 'download path').describe('u', 'email address') .describe('h', 'switch from videos (default) to handouts').boolean('h') @@ -33,9 +33,9 @@ exports.create = function start() { 'use strict'; - var argv = optimist.argv, lookFor = ((!argv.h)? 'Videos' : 'Handouts'), isWin = /^win/.test(process.platform), slash = (isWin) ? '\\' : '/'; + var argv = yargs.argv, lookFor = ((!argv.h)? 'Videos' : 'Handouts'), isWin = /^win/.test(process.platform), slash = (isWin) ? '\\' : '/'; - if (argv.help) { return optimist.showHelp(); } + if (argv.help) { return yargs.showHelp(); } argv.d = path.normalize(argv.d); diff --git a/package.json b/package.json index 675d83e..03d5ce6 100644 --- a/package.json +++ b/package.json @@ -38,13 +38,13 @@ "lodash": "~2.4.1", "mkdirp": "~0.5.0", "mv": "~2.0.3", - "optimist": "~0.6.1", "progress": "~1.1.8", "request": "~2.42.0", "request-progress": "~0.3.1", "rimraf": "~2.2.8", "unzip": "~0.1.11", "which": "~1.0.5", + "yargs": "~1.3.1", "youtube-dl": "~1.5.15" }, "engines": { |