Command line arguments: Mixing options and commands doesn't work #11701

Closed
opened 2026-01-31 02:55:12 +00:00 by claunia · 3 comments
Owner

Originally created by @Sergej-Popov on GitHub (Dec 4, 2020).

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.19041.0 Microsoft Windows NT 10.0.19041.0

Windows Terminal version (if applicable):
1.4.3243.0

As per doc, the cli options are wt [options] [command ; ]
But it doesn't work when adding both options and command,
Examples below attempting to open maximized window with single tab and with split panes

Steps to reproduce 1

From PowerShell

wt --maximized -d C:\ `; split-pane -d C:\dev

or from CMD

wt --maximized -d C:\ ; split-pane -d C:\dev

Expected behavior

Maximized terminal with 2 panes on a single tab.

Actual behavior

image

Steps to reproduce 2

From PowerShell

 wt -d C:\ `; split-pane -d C:\dev `; --maximized

or from CMD

 wt -d C:\ ; split-pane -d C:\dev; --maximized

Expected behavior

Maximized terminal with 2 panes on a single tab.

Actual behavior

This times it opens and is maximized but creates an extra tab with default pane
image

Originally created by @Sergej-Popov on GitHub (Dec 4, 2020). # Environment ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.19041.0 Microsoft Windows NT 10.0.19041.0 Windows Terminal version (if applicable): 1.4.3243.0 ``` [As per doc](https://docs.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows#options-and-commands), the cli options are `wt [options] [command ; ]` But it doesn't work when adding both options and command, Examples below attempting to open maximized window with single tab and with split panes # Steps to reproduce 1 From PowerShell ```powershell wt --maximized -d C:\ `; split-pane -d C:\dev ``` or from CMD ```cmd wt --maximized -d C:\ ; split-pane -d C:\dev ``` # Expected behavior Maximized terminal with 2 panes on a single tab. # Actual behavior ![image](https://user-images.githubusercontent.com/1652990/101188886-3afde980-364e-11eb-86c5-73089eac562f.png) # Steps to reproduce 2 From PowerShell ```powershell wt -d C:\ `; split-pane -d C:\dev `; --maximized ``` or from CMD ```cmd wt -d C:\ ; split-pane -d C:\dev; --maximized ``` # Expected behavior Maximized terminal with 2 panes on a single tab. # Actual behavior This times it opens and is maximized but creates an extra tab with default pane ![image](https://user-images.githubusercontent.com/1652990/101189284-bfe90300-364e-11eb-8f8c-f87e46170fe9.png)
claunia added the Resolution-Duplicate label 2026-01-31 02:55:12 +00:00
Author
Owner

@DHowett commented on GitHub (Dec 4, 2020):

@Don-Vito is awesome and fixed this in #8315!

@DHowett commented on GitHub (Dec 4, 2020): @Don-Vito is awesome and fixed this in #8315!
Author
Owner

@DHowett commented on GitHub (Dec 4, 2020):

/dup #7318

@DHowett commented on GitHub (Dec 4, 2020): /dup #7318
Author
Owner

@ghost commented on GitHub (Dec 4, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Dec 4, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11701