Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update command-line-args to new API version in facebook_bot.js #361

Merged
merged 1 commit into from
Aug 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions facebook_bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,14 @@ 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,
description: 'Custom subdomain for the localtunnel.me URL. This option can only be used together with --lt.',
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();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down