feat(eims): import MoR location master and fix importer arg parsing

This commit is contained in:
Hagernesh
2026-08-24 09:08:09 +00:00
parent f579438483
commit c9a68570e4
22 changed files with 1172 additions and 7 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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(