INNER CODE UNIT · TypeScript
styleOrNum
scribbletune/scribbletune · src/cli.ts:232
const styleOrNum = argv[i + 1];
const maybeNum = argv[i + 2];
if (!styleOrNum || styleOrNum.startsWith('--')) {
options.sizzle = true;
i += 1;
continue;
}
if (/^\d+$/.test(styleOrNum)) {
options.sizzle = true;
options.sizzleReps = Number(styleOrNum);
i += 2;
continue;
}
options.sizzle = styleOrNum as SizzleStyle;
if (maybeNum && /^\d+$/.test(maybeNum)) {
options.sizzleReps = Number(maybeNum);
i += 3;
} else {