Skip to content

Commit 2a7ec8a

Browse files
committed
add -- manually
1 parent c3d924a commit 2a7ec8a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/cli.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ async function main() {
4141
const completion = new PackageManagerCompletion(packageManager);
4242
await setupCompletionForPackageManager(packageManager, completion);
4343
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('--');
44+
// Only append -- if there are actual args (PowerShell stripped the trailing --)
45+
if (toComplete.length > 0) {
46+
toComplete.push('--');
47+
}
4748
await completion.parse(toComplete);
4849
process.exit(0);
4950
} else {

0 commit comments

Comments
 (0)