Error message when trying to provide a --startingDirectory to a WSL wt.exe command #6011

Closed
opened 2026-01-31 00:27:47 +00:00 by claunia · 2 comments
Owner

Originally created by @zadjii-msft on GitHub (Jan 17, 2020).

(Follow-up from #4023)

Say you wanted to open a Debian WSL instance in C:\Users. According to the docs, you might try:

wt -d c:\Users wsl -d Debian

Unfortunately, this won't work, and will give you an error about "expected exactly 1 argument to --startingDirectory, got 2". This is because we'll erroneously try to parse the -d Debian parameter as a second --startingDirectory value. This is unexpected.

Originally created by @zadjii-msft on GitHub (Jan 17, 2020). (Follow-up from #4023) Say you wanted to open a `Debian` WSL instance in `C:\Users`. According to the docs, you might try: ``` wt -d c:\Users wsl -d Debian ``` Unfortunately, this _won't_ work, and will give you an error about "expected exactly 1 argument to `--startingDirectory`, got 2". This is because we'll erroneously try to parse the `-d Debian` parameter as a second `--startingDirectory` value. This is unexpected.
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 23, 2020):

Triaged into 1.x.

@DHowett-MSFT commented on GitHub (Jan 23, 2020): Triaged into 1.x.
Author
Owner

@ghost commented on GitHub (Feb 13, 2020):

:tada:This issue was addressed in #4388, which has now been successfully released as Windows Terminal Preview v0.9.433.0.🎉

Handy links:

@ghost commented on GitHub (Feb 13, 2020): :tada:This issue was addressed in #4388, which has now been successfully released as `Windows Terminal Preview v0.9.433.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.9.433.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6011