Skip to content

docs(stdio): put --log before the task name in the example - #874

Merged
wan9chi merged 1 commit into
voidzero-dev:mainfrom
Dunqing:docs-stdio-log-flag-position
Oct 22, 2026
Merged

wan9chi merged 1 commit into
voidzero-dev:mainfrom
Dunqing:docs-stdio-log-flag-position

Conversation

@Dunqing

@Dunqing Dunqing commented Oct 22, 2026

Copy link
Copy Markdown
Member

Motivation

docs/stdio.md shows vp run build --log=<mode>. vp run stops reading its own flags at the task name, so that command passes --log=<mode> to the task and keeps the default output mode:

$ vt run build --log=labeled
$ vtt print built --log=labeled ⊘ cache disabled
built --log=labeled

Changes

  • Show vp run --log=<mode> build.
  • Say that arguments after the task name go to the task.

`vp run build --log=<mode>` passes `--log=<mode>` to the task instead of
setting the log mode, because everything after the task name belongs to
the task. Show `vp run --log=<mode> build` and say so.
@Dunqing
Dunqing requested a review from wan9chi October 22, 2026 06:43
@wan9chi

wan9chi commented Oct 22, 2026

Copy link
Copy Markdown
Member

Thanks!

@wan9chi
wan9chi merged commit 9df0605 into voidzero-dev:main Oct 22, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants