mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 12:41:04 +00:00
feat(eims): import MoR location master and fix importer arg parsing
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -64,7 +64,9 @@ async function main(): Promise<void> {
|
||||
const args = process.argv.slice(2);
|
||||
const sheetFlag = args.indexOf("--sheet");
|
||||
const sheetName = sheetFlag >= 0 ? args[sheetFlag + 1] : DEFAULT_SHEET;
|
||||
const workbookPath = args.find((arg, i) => !arg.startsWith("--") && i !== sheetFlag + 1);
|
||||
const workbookPath = args.find(
|
||||
(arg, i) => !arg.startsWith("--") && (sheetFlag < 0 || i !== sheetFlag + 1),
|
||||
);
|
||||
|
||||
if (!workbookPath) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user