mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
docs(coding-agent): document -- end-of-options delimiter
This commit is contained in:
parent
74786a748f
commit
62bcbf6be0
3 changed files with 15 additions and 3 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue