fix(coding-agent): remove -- from registerFlag calls

This was causing the agent sometimes to pick up on the incorrect syntax when
asked to write extensions with flags
This commit is contained in:
Kao Félix 2026-01-11 02:21:15 +01:00
parent 65b72cc514
commit 6d60302646
4 changed files with 6 additions and 6 deletions

View file

@ -190,7 +190,7 @@ export default function (pi: ExtensionAPI) {
pi.registerTool({ ... });
pi.registerCommand("name", { ... });
pi.registerShortcut("ctrl+x", { ... });
pi.registerFlag("--my-flag", { ... });
pi.registerFlag("my-flag", { ... });
}
```
@ -809,7 +809,7 @@ pi.registerShortcut("ctrl+shift+p", {
Register a CLI flag.
```typescript
pi.registerFlag("--plan", {
pi.registerFlag("plan", {
description: "Start in plan mode",
type: "boolean",
default: false,