diff --git a/facebook_bot.js b/facebook_bot.js index 1336d1db8..1d05f098f 100755 --- a/facebook_bot.js +++ b/facebook_bot.js @@ -81,7 +81,7 @@ var os = require('os'); var commandLineArgs = require('command-line-args'); var localtunnel = require('localtunnel'); -const cli = commandLineArgs([ +const ops = commandLineArgs([ {name: 'lt', alias: 'l', args: 1, description: 'Use localtunnel.me to make your bot available on the web.', type: Boolean, defaultValue: false}, {name: 'ltsubdomain', alias: 's', args: 1, @@ -89,7 +89,6 @@ const cli = commandLineArgs([ type: String, defaultValue: null}, ]); -const ops = cli.parse(); if(ops.lt === false && ops.ltsubdomain !== null) { console.log("error: --ltsubdomain can only be used together with --lt."); process.exit(); diff --git a/package.json b/package.json index 19574f930..eab32c777 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "async": "^2.0.0-rc.5", "back": "^1.0.1", "body-parser": "^1.14.2", - "command-line-args": "^2.1.6", + "command-line-args": "^3.0.0", "express": "^4.13.3", "https-proxy-agent": "^1.0.0", "jfs": "^0.2.6",