mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
minor typo fixed
This commit is contained in:
4
index.js
4
index.js
@@ -47,7 +47,7 @@ const params = yargs
|
|||||||
|
|
||||||
.alias('t', 'test')
|
.alias('t', 'test')
|
||||||
.nargs('t', 0)
|
.nargs('t', 0)
|
||||||
.describe('v', 'Test the configuration with fake BGP updates')
|
.describe('t', 'Test the configuration with fake BGP updates')
|
||||||
|
|
||||||
.alias('d', 'data-volume')
|
.alias('d', 'data-volume')
|
||||||
.nargs('d', 1)
|
.nargs('d', 1)
|
||||||
@@ -159,7 +159,7 @@ switch(params._[0]) {
|
|||||||
|
|
||||||
default: // Run monitor
|
default: // Run monitor
|
||||||
global.DRY_RUN = !!params.t;
|
global.DRY_RUN = !!params.t;
|
||||||
if (global.DRY_RUN) console.log("Testing BGPalerter configuration. WARNING: Remove -t option for production monitoring.");
|
if (global.DRY_RUN) console.log("Testing BGPalerter configuration. WARNING: remove -t option for production monitoring.");
|
||||||
const Worker = require("./src/worker").default;
|
const Worker = require("./src/worker").default;
|
||||||
module.exports = new Worker(params.c, params.d);
|
module.exports = new Worker(params.c, params.d);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user