📦 deps(thirdparty): update snapshots
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Shared CLI argument parser.
|
||||
* Used by: ci-review.mjs, run-evals-live.mjs
|
||||
*/
|
||||
export function parseArgs(argv) {
|
||||
const args = {};
|
||||
for (let i = 0; i < argv.length; i++) {
|
||||
if (argv[i].startsWith("--")) {
|
||||
const key = argv[i].slice(2);
|
||||
if (argv[i + 1] !== undefined && !argv[i + 1].startsWith("--")) {
|
||||
args[key] = argv[i + 1];
|
||||
i++;
|
||||
} else {
|
||||
args[key] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return args;
|
||||
}
|
||||
Reference in New Issue
Block a user