From 28ac3023ba5a03761ec6d64b5f666662b2096abe Mon Sep 17 00:00:00 2001 From: Dunqing Date: Thu, 22 Oct 2026 01:53:26 +0800 Subject: [PATCH] docs(stdio): put `--log` before the task name in the example `vp run build --log=` passes `--log=` to the task instead of setting the log mode, because everything after the task name belongs to the task. Show `vp run --log= build` and say so. --- docs/stdio.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/stdio.md b/docs/stdio.md index 2a9d8ebf0..2d7e0e316 100644 --- a/docs/stdio.md +++ b/docs/stdio.md @@ -5,9 +5,11 @@ How stdin, stdout, and stderr are connected to task processes, controlled by the ## The `--log` Flag ``` -vp run build --log= +vp run --log= build ``` +The flag goes before the task name. Anything after the task name is passed to the task, so `vp run build --log=grouped` runs the task's command with `--log=grouped` appended. + | Mode | Description | | --------------------------- | ----------------------------------------------------------------------------- | | `interleaved` **(default)** | Output streams directly to the terminal as tasks produce it. |