mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 23:00:03 +00:00
fix(cli): reject missing init example values (#2376)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user