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 c3d924a commit 2a7ec8aCopy full SHA for 2a7ec8a
bin/cli.ts
@@ -41,9 +41,10 @@ async function main() {
41
const completion = new PackageManagerCompletion(packageManager);
42
await setupCompletionForPackageManager(packageManager, completion);
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('--');
+ // Only append -- if there are actual args (PowerShell stripped the trailing --)
+ if (toComplete.length > 0) {
+ toComplete.push('--');
47
+ }
48
await completion.parse(toComplete);
49
process.exit(0);
50
} else {
0 commit comments