Skip to content

Fix incorrect --detach description in container run help text#40149

Open
benhillis wants to merge 1 commit intomicrosoft:feature/wsl-for-appsfrom
benhillis:user/benhill/cli-detach-fix
Open

Fix incorrect --detach description in container run help text#40149
benhillis wants to merge 1 commit intomicrosoft:feature/wsl-for-appsfrom
benhillis:user/benhill/cli-detach-fix

Conversation

@benhillis
Copy link
Copy Markdown
Member

The help text for wslc container run incorrectly stated that containers start in the background by default and --detach runs in the foreground. The actual behavior (confirmed by ContainerService.cpp line 299: WI_SetFlagIf(startFlags, WSLCContainerStartFlagsAttach, !runOptions.Detach)) is the opposite: containers start attached (foreground) by default, and --detach runs them in the background.

This fix updates the en-US locale string. Other locales will pick up the correction through the standard localization pipeline.


Before: Runs a container. By default, the container is started in the background; use --detach to run in the foreground.

After: Runs a container. By default, the container is started in the foreground; use --detach to run in the background.

The help text for 'wslc container run' incorrectly stated that
containers start in the background by default and --detach runs in
the foreground. The actual behavior (confirmed by ContainerService.cpp)
is the opposite: containers start attached (foreground) by default,
and --detach runs them in the background.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benhillis benhillis requested a review from a team as a code owner April 10, 2026 05:18
Copilot AI review requested due to automatic review settings April 10, 2026 05:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@benhillis benhillis changed the base branch from master to feature/wsl-for-apps April 10, 2026 05:19
@benhillis benhillis requested a review from a team as a code owner April 10, 2026 05:19
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