We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef10a9 commit ca126faCopy full SHA for ca126fa
src/index.ts
@@ -69,6 +69,15 @@ program
69
.option("--pretty", "pretty-print the output")
70
.action(handleError(exportCommand));
71
72
+// error on unknown commands
73
+program.on("command:*", () => {
74
+ console.error(
75
+ "Invalid command: %s\nSee --help for a list of available commands.",
76
+ program.args.join(" ")
77
+ );
78
+ process.exit(1);
79
+});
80
+
81
function handleError(
82
f: (...args: any[]) => Promise<void>
83
): (...args: any[]) => Promise<void> {
0 commit comments