mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-11 02:26:10 +00:00
fix(profiles): bind routing receipts and harden review paths
This commit is contained in:
11 files changed
+99
-18
No files matched your search
@@ -43,6 +43,10 @@ function parseFlags(argv) {
|
||||
flags[arg.slice(2).replace(/-([a-z])/g, (_, c) => c.toUpperCase())] = argv[index += 1];
|
||||
} else throw new Error(`Unknown flag: ${arg}`);
|
||||
}
|
||||
if (!/^[1-9][0-9]*$/.test(String(flags.batch)) || !Number.isSafeInteger(Number(flags.batch))) {
|
||||
throw new Error('--batch must be a positive integer');
|
||||
}
|
||||
flags.batch = Number(flags.batch);
|
||||
return flags;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user