From 58b91a89b6fcafa9c20aaf12e5128d6b8d62bb6f Mon Sep 17 00:00:00 2001 From: Ilya Date: Fri, 31 Jul 2020 21:40:42 +0500 Subject: [PATCH] Fix conflicting shorthand switch `-s` (sta) for pwsh (#13262) --- .../host/msh/CommandLineParameterParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs index 449ac8a27..18f275f7f 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs @@ -957,7 +957,7 @@ namespace Microsoft.PowerShell break; } } - else if (MatchSwitch(switchKey, "sta", "s")) + else if (MatchSwitch(switchKey, "sta", "sta")) { if (!Platform.IsWindowsDesktop) {