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:
parent
a43429d3ad
commit
f8eb85abee
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue