<!-- GENERATED FILE — do not edit. Rebuilt by scripts/docs_site/generate_reference.py from openprogram/interfaces/cli/parser.py. -->


# 运行记录

写出某个状态目录中 --print 运行的记录，每行一条 JSON 记录，格式与 --transcript-file 写出的相同。

```text
usage: openprogram transcript [-h] [--state DIR] [--session ID]
                              [--output PATH]
```

## 参数

| 参数 | 说明 |
|---|---|
| `--state` `DIR` | 要读取的状态目录（默认：当前 profile 的） |
| `--session` `ID` | 要读取的会话；状态目录中有多个会话时必须指定 |
| `--output`, `-o` `PATH` | 把记录写到这里，而不是标准输出 |
