summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2016-01-16 22:54:06 +0000
committerprzemyslawpluta <przemekpluta@hotmail.com>2016-01-16 22:54:06 +0000
commitdfb20ed3888bc62d29f44e2b8207d282205e67b1 (patch)
tree2d0f7b15cdc8c4a456bf69e8fdd808650002e831
parent9964d3803e7fa3bc6823a755de8101cb02333def (diff)
downloadmongo-edu-dfb20ed3888bc62d29f44e2b8207d282205e67b1.zip
update help
-rw-r--r--lib/options.js4
-rw-r--r--package.json4
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/options.js b/lib/options.js
index 11ae37a..24842df 100644
--- a/lib/options.js
+++ b/lib/options.js
@@ -26,16 +26,20 @@ var fs = require('fs'),
.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')
+ .describe('cco', 'get only closed captions without downloading videos').boolean('cco')
.describe('hq', 'get high quality videos').boolean('hq')
.describe('ncc', 'no check certificate').boolean('ncc')
.describe('uz', 'unzip handout files').boolean('uz')
.describe('co', 'arrange video files in correct order of the courseware').boolean('co')
.describe('verbose', 'print debug information').boolean('verbose')
+ .describe('retry', 'retry time in seconds if connection / download fails').boolean('retry')
.example('mongo-edu -d your_download_path', 'download videos from wiki')
.example('mongo-edu -d your_download_path -u your_user_name --cw --hq --cc', 'download high quality videos from courseware with closed captions')
.example('mongo-edu -d your_download_path -u your_user_name --cw --hq --cc --save myvideo', 'save all options under `myvideo` preset and run')
.example('mongo-edu -d your_download_path --load', 'select and run from available presets')
.example('mongo-edu -d your_download_path -h --uz', 'download and unzip handouts')
+ .example('mongo-edu -d your_download_path --retry 30', 'retry for 30 seconds if connection / download fails')
+ .example('mongo-edu -d your_download_path -u your_user_name -cco', 'get only closed captions without downloading videos')
.example('mongo-edu -d your_download_path --cw --verbose', 'download videos from courseware and print debug info')
.example('mongo-edu -d your_download_path --cw --proxy http://proxy_ip_address:proxy_port_number', 'download videos from courseware via proxy tunnel')
.example('mongo-edu -d your_download_path --proxy http://proxy_ip_address:proxy_port_number --test', 'test proxy and download video via proxy tunnel')
diff --git a/package.json b/package.json
index 804ce18..35b4085 100644
--- a/package.json
+++ b/package.json
@@ -39,7 +39,7 @@
"get-youtube-id": "~1.0.0",
"glob": "~6.0.3",
"inquirer": "~0.11.2",
- "lodash": "~3.10.1",
+ "lodash": "~4.0.0",
"mkdirp": "~0.5.1",
"moment": "~2.11.1",
"mv": "~2.1.1",
@@ -50,7 +50,7 @@
"request-progress": "~1.0.2",
"rimraf": "~2.5.0",
"which": "~1.2.1",
- "yargs": "~3.31.0",
+ "yargs": "~3.32.0",
"youtube-dl": "~1.10.5"
},
"engines": {