Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #361 from houjunchen/command-line-args-3.0.0
Browse files Browse the repository at this point in the history
Update command-line-args to new API version in facebook_bot.js
  • Loading branch information
Ben Brown authored Aug 13, 2016
2 parents 59558e9 + c67a6ab commit 6d8eb7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
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

0 comments on commit 6d8eb7e

Please sign in to comment.