summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--mongo-edu.js8
2 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index b98e9a1..6d7039e 100644
--- a/README.md
+++ b/README.md
@@ -46,7 +46,7 @@ Handouts:
--uz unzip handout files
Proxy:
- --proxy pass proxy switch
+ --proxy pass proxy switch for video download
--test use with --proxy to test if usable
```
diff --git a/mongo-edu.js b/mongo-edu.js
index 49f9b24..b446f8e 100644
--- a/mongo-edu.js
+++ b/mongo-edu.js
@@ -19,7 +19,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('proxy', 'pass proxy').describe('proxy', 'pass proxy switch for video download')
.describe('test', 'proxy test').describe('test', 'use with --proxy to test if usable')
.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')
@@ -29,6 +29,12 @@ var mdbvideos = require('./lib/login'),
.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')
+ .example('$0 -d your_download_path', 'download videos from wiki')
+ .example('$0 -d your_download_path -u your_user_name --cw --hq --cc', 'download high quality videos from courseware with closed caltions')
+ .example('$0 -d your_download_path -h --uz', 'download and unzip handouts')
+ .example('$0 -d your_download_path --cw --verbose', 'download videos from courseware and print debug info')
+ .example('$0 -d your_download_path --cw --proxy http://proxy_ip_address:proxy_port_number', 'download videos from courseware via proxy tunnel')
+ .example('$0 -d your_download_path --proxy http://proxy_ip_address:proxy_port_number --test', 'test proxy and download video via proxy tunnel')
.demand('d');
exports.create = function start() {