mirror of
https://github.com/jwetzell/aas-js.git
synced 2026-09-04 19:59:03 +00:00
cleanup
This commit is contained in:
@@ -12,7 +12,7 @@ const packageInfo = require('./package.json');
|
|||||||
|
|
||||||
program.name(packageInfo.name);
|
program.name(packageInfo.name);
|
||||||
program.version(packageInfo.version);
|
program.version(packageInfo.version);
|
||||||
program.description('Simple protocol router /s');
|
program.description('AAS Serial Decoder');
|
||||||
program.option('-d, --device <serial port path>', 'serialport path');
|
program.option('-d, --device <serial port path>', 'serialport path');
|
||||||
program.option('-o, --output <output file>', 'file to write console info to');
|
program.option('-o, --output <output file>', 'file to write console info to');
|
||||||
program.addOption(new Option('-f, --format <output format>').choices(['json', 'xml', 'yaml']).default('json'));
|
program.addOption(new Option('-f, --format <output format>').choices(['json', 'xml', 'yaml']).default('json'));
|
||||||
@@ -53,7 +53,6 @@ function setup(devicePath) {
|
|||||||
console.error(error.message);
|
console.error(error.message);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Switches the port into "flowing mode"
|
|
||||||
port.on('data', (data) => {
|
port.on('data', (data) => {
|
||||||
if (aasConsole) {
|
if (aasConsole) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user