docs(coding-agent): document -- end-of-options delimiter

This commit is contained in:
Armin Ronacher 2026-08-23 00:01:33 +02:00
parent 74786a748f
commit 62bcbf6be0
3 changed files with 15 additions and 3 deletions

View file

@ -142,7 +142,7 @@ If you use pi for open source work and want to publish sessions for model, promp
## CLI Reference
```bash
pi [options] [@files...] [messages...]
pi [options] [--] [@files...] [messages...]
```
### Package Commands
@ -246,6 +246,7 @@ pi --no-extensions -e ./my-extension.ts
| `--verbose` | Force verbose startup |
| `-a`, `--approve` | Trust project-local files for this run |
| `-na`, `--no-approve` | Ignore project-local files for this run |
| `--` | Stop option parsing; remaining arguments are prompts or `@file` inputs |
| `-h`, `--help` | Show help |
| `-v`, `--version` | Show version |
@ -272,6 +273,9 @@ pi "List all .ts files in src/"
# Non-interactive
pi -p "Summarize this codebase"
# Prompt beginning with a dash
pi -p -- "- Summarize these points"
# Non-interactive with piped stdin
cat README.md | pi -p "Summarize this text"