fix(cli): reject missing init example values (#2376)

This commit is contained in:
Miguel Ángel
2026-07-13 20:42:11 -04:00
committed by GitHub
parent 403ecb56d9
commit 3a020bf543
2 changed files with 17 additions and 0 deletions
+4
View File
@@ -719,6 +719,10 @@ export default defineCommand({
process.exit(1);
}
const exampleFlag = args.example;
if (exampleFlag?.startsWith("-")) {
console.error(c.error(`--example requires a value; received flag "${exampleFlag}" instead.`));
process.exit(1);
}
const videoFlag = args.video;
const audioFlag = args.audio;
const skipTranscribe = args["skip-transcribe"] === true;