Skip to content

Commit f3229d2

Browse files
committed
Clarify cli frontmatter overrides. Fixes #7
1 parent 4a7899c commit f3229d2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,17 @@ Note: `runprompt` must be in your PATH, or use a relative/absolute path in the s
111111

112112
### CLI overrides
113113

114-
Override any frontmatter value from the command line:
114+
Override frontmatter values from the command line:
115115

116116
```bash
117117
./runprompt --model anthropic/claude-haiku-4-20250514 hello.prompt
118-
./runprompt --name "Alice" hello.prompt
118+
./runprompt --output.format json extract.prompt
119+
```
120+
121+
Note: CLI overrides set frontmatter values (model, config, output format, etc.), not template variables. To pass template variables, use stdin:
122+
123+
```bash
124+
echo '{"name": "Alice"}' | ./runprompt hello.prompt
119125
```
120126

121127
## Template syntax

0 commit comments

Comments
 (0)