Skip to content

Commit 08fa225

Browse files
committed
throw error
1 parent 4f991e8 commit 08fa225

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/shared.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ export function assertDoubleDashes(programName: string = 'cli'): void {
2323
if (dashDashIndex === -1) {
2424
const errorMessage = `Error: You need to use -- to separate completion arguments.\nExample: ${programName} complete -- <args>`;
2525
console.error(errorMessage);
26+
throw new Error('Missing -- separator');
2627
}
2728
}

0 commit comments

Comments
 (0)