Skip to content

Commit b8dcdfe

Browse files
committed
make switchKeyResults an explicit type
1 parent 92a8b9b commit b8dcdfe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,15 +495,15 @@ private static void EarlyParseHelper(string[] args)
495495
bool noexitSeen = false;
496496
for (int i = 0; i < args.Length; ++i)
497497
{
498-
var switchKeyResults = GetSwitchKey(args, ref i, null, ref noexitSeen);
498+
(string SwitchKey, bool ShouldBreak) switchKeyResults = GetSwitchKey(args, ref i, null, ref noexitSeen);
499499
if (switchKeyResults.ShouldBreak)
500500
{
501501
break;
502502
}
503503

504504
string switchKey = switchKeyResults.SwitchKey;
505505

506-
if (MatchSwitch(switchKey, "settingsfile", "settings"))
506+
if (MatchSwitch(switchKey, match: "settingsfile", smallestUnambiguousMatch: "settings"))
507507
{
508508
// parse setting file arg and don't write error as there is no host yet.
509509
if (!TryParseSettingFileHelper(args, ++i, null))
@@ -668,7 +668,7 @@ private void ParseHelper(string[] args)
668668

669669
for (int i = 0; i < args.Length; ++i)
670670
{
671-
var switchKeyResults = GetSwitchKey(args, ref i, this, ref noexitSeen);
671+
(string SwitchKey, bool ShouldBreak) switchKeyResults = GetSwitchKey(args, ref i, this, ref noexitSeen);
672672
if (switchKeyResults.ShouldBreak)
673673
{
674674
break;

0 commit comments

Comments
 (0)