diff options
author | przemyslawpluta <przemekpluta@hotmail.com> | 2014-06-16 22:03:29 +0100 |
---|---|---|
committer | przemyslawpluta <przemekpluta@hotmail.com> | 2014-06-16 22:03:29 +0100 |
commit | 7979f91be16cc87db56e616ee25ee9c175b7c526 (patch) | |
tree | 039865dfcf085dfc0d02e91b6cd7de5b842d8f61 /mongo-edu.js | |
parent | 3ac33dafa17ae9f072b70dd469141bd5f6de39cf (diff) | |
download | mongo-edu-7979f91be16cc87db56e616ee25ee9c175b7c526.zip |
dev python check
Diffstat (limited to 'mongo-edu.js')
-rw-r--r-- | mongo-edu.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mongo-edu.js b/mongo-edu.js index f6dc0ca..5693ee5 100644 --- a/mongo-edu.js +++ b/mongo-edu.js @@ -9,6 +9,7 @@ var mdbvideos = require('./lib/login'), videoHandler = require('./lib/videos'), validate = require('./lib/validate'), + configure = require('./lib/configure'), path = require('path'), colors = require('colors'), inquirer = require('inquirer'), @@ -16,6 +17,7 @@ var mdbvideos = require('./lib/login'), .usage('Usage: $0 [options]') .describe('d', 'download path').describe('u', 'email address') .describe('h', 'switch from videos (default) to handouts').boolean('h') + .describe('py', 'pass python').describe('py', 'python') .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') @@ -39,7 +41,12 @@ exports.create = function start() { validate.init(argv, function (err, profile) { if (err !== null) { throw err; } - run(profile); + + configure(argv, function conf(err) { + if (err !== null) { throw err; } + run(profile); + }); + }); function run(profile) { |