Comparing version 1.0.3 to 1.0.4
@@ -6,3 +6,2 @@ #!/usr/bin/env node | ||
discovery = require('ot-discovery'), | ||
disco = new discovery('discovery-pp-sf.otenv.com', { logger: { log: function (log) {}, error: function (error) {}}}), | ||
program = require('commander'), | ||
@@ -17,4 +16,11 @@ pkg = require('./package.json'); | ||
var discoServer = program.args; | ||
var service = program.service || 'restaurant'; | ||
var time = program.time; | ||
var disco = new discovery(discoServer, { | ||
logger: { | ||
log: function (log) {}, | ||
error: function (error) {} | ||
} | ||
}); | ||
@@ -21,0 +27,0 @@ disco.connect(function(err){ |
{ | ||
"name": "bother", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Availability check for announced services", | ||
@@ -5,0 +5,0 @@ "main": "bother-app.js", |
@@ -15,6 +15,7 @@ # bother | ||
```shell | ||
bother --service <servicename> --time <seconds> | ||
bother [discoveryServer] --service <servicename> --time <seconds> | ||
``` | ||
The **discoveryServer** argument is mandatory. It is the discovery service URL to be hit by bother. | ||
The **time** parameter is optional. If not specified, you will bother forever. Until of course you force the exit from keyboard. | ||
4391
38
21