Skip to content

🎥 Make videos programmatically with React

don't log `command undefined not found`

Jonny Burger4837319fd7af
diff --git a/packages/cli/src/index.tsx b/packages/cli/src/index.tsx
index 883a0f6cea..31de217618 100644
--- a/packages/cli/src/index.tsx
+++ b/packages/cli/src/index.tsx
@@ -77,7 +77,10 @@ export const cli = async () => {
printHelp();
process.exit(0);
} else {
- Log.error(`Command ${command} not found.`);
+ if (command) {
+ Log.error(`Command ${command} not found.`);
+ }
+
printHelp();
process.exit(1);
}