INNER CODE UNIT · JavaScript
broadcastDir
flayerlabs/flaunchgg-contracts · lib/v4-hooks-public/lib/forge-chronicles/index.js:82
broadcastDir = args[i + 1];
i++; // Skip the next argument
break;
} else {
console.error("Error: --broadcast-dir flag requires a directory path");
process.exit(1);
}
case "-o":
case "--out-dir":
// Check if there's another argument after --output-dir and the argument is not another command
if (i + 1 < args.length && args[i + 1].charAt(0) !== "-") {
outDir = args[i + 1];
i++; // Skip the next argument
break;
} else {
console.error("Error: --out-dir flag requires a directory path");
process.exit(1);
}