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 cf7658d commit 1bc06fdCopy full SHA for 1bc06fd
bin/cli.ts
@@ -40,6 +40,17 @@ async function main() {
40
? args.slice(2)
41
: null;
42
43
+ // When PowerShell drops '--', the cursor placeholder is lost; append an empty
44
+ // arg so downstream completion logic knows the cursor is at a new token.
45
+ if (
46
+ isPowerShell &&
47
+ dashIndex === -1 &&
48
+ completionArgs &&
49
+ completionArgs[completionArgs.length - 1] !== ''
50
+ ) {
51
+ completionArgs.push('');
52
+ }
53
+
54
if (!completionArgs) {
55
console.error(`Error: Expected '--' followed by command to complete`);
56
process.exit(1);
0 commit comments