diff options
author | przemyslawpluta <przemekpluta@hotmail.com> | 2014-09-25 22:04:04 +0100 |
---|---|---|
committer | przemyslawpluta <przemekpluta@hotmail.com> | 2014-09-25 22:04:04 +0100 |
commit | 4662c967a3001909f603dec9724b45d1a766ee61 (patch) | |
tree | 056af8f931a86de89f41c4145c03f832a7d8fd5c /mongo-edu.js | |
parent | 0b2917b0b9297ce4396c338c85f9a6866e60b16e (diff) | |
download | mongo-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.js | 4 |
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; } |