Skip to content

Commit c3d924a

Browse files
committed
add -- manually
1 parent cfe36d0 commit c3d924a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/cli.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ async function main() {
4040
// PowerShell: -- was stripped, everything after 'complete' is what we want
4141
const completion = new PackageManagerCompletion(packageManager);
4242
await setupCompletionForPackageManager(packageManager, completion);
43-
const toComplete = args.slice(2);
43+
let toComplete = args.slice(2);
44+
// Always append -- for PowerShell (it was stripped from the input)
45+
// This ensures option completion works correctly
46+
toComplete.push('--');
4447
await completion.parse(toComplete);
4548
process.exit(0);
4649
} else {

0 commit comments

Comments
 (0)