summaryrefslogtreecommitdiff
path: root/mongo-edu.js
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2014-02-17 18:43:58 +0000
committerprzemyslawpluta <przemekpluta@hotmail.com>2014-02-17 18:43:58 +0000
commitc9c95c52d4265f0bd8925946f43668a2d07cc41d (patch)
tree9fefa65f46bf19c5833c403f5afc42d810b5c15d /mongo-edu.js
parent053ff35e80cdcc4c2572a8892ead25e5f1f02bf1 (diff)
downloadmongo-edu-c9c95c52d4265f0bd8925946f43668a2d07cc41d.zip
py3.x opt added
Diffstat (limited to 'mongo-edu.js')
-rw-r--r--mongo-edu.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/mongo-edu.js b/mongo-edu.js
index 71652f0..6a5d1e1 100644
--- a/mongo-edu.js
+++ b/mongo-edu.js
@@ -12,8 +12,9 @@ var mdbvideos = require('./lib/login'),
colors = require('colors'),
inquirer = require('inquirer'),
argv = require('optimist')
- .usage('Usage: $0 -u [user name] -d [download path]')
+ .usage('Usage: $0 -u [user name] -d [download path] --ncc [no check certificate]')
.describe('d', 'download path').describe('u', 'email address')
+ .describe('ncc', 'no check certificate with py3.x').boolean('ncc')
.demand('d').argv;
exports.create = function start() {
@@ -74,7 +75,7 @@ exports.create = function start() {
mdbvideos.listVideos(answers, function get(err, data, pass) {
if (err !== null) { throw err; }
- if (!pass) { return videoHandler.details(data, showDetails); }
+ if (!pass) { return videoHandler.details(data, argv, showDetails); }
showDetails(err, data);
});
@@ -88,7 +89,7 @@ exports.create = function start() {
check[0].choices = data;
return inquirer.prompt(check, function prompt(answers) {
- videoHandler.download(answers, data, argv);
+ videoHandler.download(answers, data);
});
}