summaryrefslogtreecommitdiff
path: root/mongo-edu.js
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2014-09-25 22:04:04 +0100
committerprzemyslawpluta <przemekpluta@hotmail.com>2014-09-25 22:04:04 +0100
commit4662c967a3001909f603dec9724b45d1a766ee61 (patch)
tree056af8f931a86de89f41c4145c03f832a7d8fd5c /mongo-edu.js
parent0b2917b0b9297ce4396c338c85f9a6866e60b16e (diff)
downloadmongo-edu-4662c967a3001909f603dec9724b45d1a766ee61.zip
update
add proxy support add debug info print through `--verbose` flag version bump cleanup
Diffstat (limited to 'mongo-edu.js')
-rw-r--r--mongo-edu.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/mongo-edu.js b/mongo-edu.js
index 7a7dc6d..5438dc1 100644
--- a/mongo-edu.js
+++ b/mongo-edu.js
@@ -18,6 +18,7 @@ var mdbvideos = require('./lib/login'),
.describe('d', 'download path').describe('u', 'email address')
.describe('h', 'switch from videos (default) to handouts').boolean('h')
.describe('py', 'py switch').describe('py', 'switch to point to Python')
+ .describe('proxy', 'pass proxy').describe('proxy', 'proxy address')
.describe('cw', 'switch from wiki\'s video lists (default) to courseware').boolean('cw')
.describe('cwd', 'same as --cw and dumps list of videos to file in -d').boolean('cwd')
.describe('cc', 'get closed captions').boolean('cc')
@@ -25,6 +26,7 @@ var mdbvideos = require('./lib/login'),
.describe('ncc', 'no check certificate').boolean('ncc')
.describe('uz', 'unzip handout files').boolean('uz')
.describe('co', 'sequence video files in order of the courseware').boolean('co')
+ .describe('verbose', 'print debug information').boolean('verbose')
.demand('d');
exports.create = function start() {
@@ -39,6 +41,8 @@ exports.create = function start() {
if (argv.d.substr(-1) !== slash) { argv.d += slash; }
+ if (argv.proxy) { console.log('i'.magenta + ' Proxy Video Download: '.bold + argv.proxy.green); }
+
validate.init(argv, function init(err, profile) {
if (err !== null) { throw err; }