terminal icon indicating copy to clipboard operation
terminal copied to clipboard

--profile: 1 required TEST missing

Open Andrew1988123123 opened this issue 3 years ago • 3 comments
trafficstars

Windows Terminal version

Windows Terminal Version: 1.13.11432.0

Windows build number

Microsoft Windows [Version 10.0.22000.708]

Other Software

No response

Steps to reproduce

  1. Create profile named "u"
  2. Run wt -p "u"; nt -p "u"
  3. Error appear.
  4. "--profile: 1 required TEST missing"

Expected Behavior

New windows terminal is created with two tabs

Actual Behavior

The error pops up and Windows Terminal never opens. Screenshot of the error https://prnt.sc/y4Hi3Uir5as9 I think profile name is too short(one sign). Profile name with more than one sign works like a charm.

Andrew1988123123 avatar Jun 11 '22 15:06 Andrew1988123123

@Andrew1988123123 that's an interesting find! If you add a space between first profile name and semicolon then it works.

Sample output with wt -p "u"; nt -p "u"

wt_error

and wt -p "u" ; nt -p "u"

image

This works with empty names also, "name": null , so wt -p "" ; nt -p "" would open two tabs. Maybe schema should be updated from null to string

elsaco avatar Jun 12 '22 02:06 elsaco

Huh. Maybe I'm splitting things poorly on the ;, it's really weird that adding a space would fix this. Command-line parsing is hard 🙃

zadjii-msft avatar Jun 13 '22 16:06 zadjii-msft

No big deal. I just have to remember adding space before ; . Even documentation say so.

Andrew1988123123 avatar Jun 13 '22 22:06 Andrew1988123123

:tada:This issue was addressed in #13706, which has now been successfully released as Windows Terminal Preview v1.16.252.:tada:

Handy links:

ghost avatar Sep 13 '22 17:09 ghost