1
0
Fork 0
mirror of https://github.com/sbrl/terrain50-cli.git synced 2024-11-26 07:33:00 +00:00

identify: properly check for unknown modes

This commit is contained in:
Starbeamrainbowlabs 2020-07-03 16:13:43 +01:00
parent a43429d3ad
commit f8eb85abee
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -40,6 +40,12 @@ export default async function(settings) {
i++;
}
break;
default:
console.error(`Error: Unknown mode ${settings.cli.mode} (possible modes: single, stream)`);
process.exit(1);
break;
}
}