Change exe '-inputformat' switch prefix '-in' to '-inp' to fix conflict with '-interactive' (#13205)

This commit is contained in:
Ilya 2020-07-21 00:16:00 +05:00 committed by GitHub
parent 2c18386d79
commit 8c22e5f7d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -921,7 +921,7 @@ namespace Microsoft.PowerShell
ParseFormat(args, ref i, ref _outFormat, CommandLineParameterParserStrings.MissingOutputFormatParameter);
_outputFormatSpecified = true;
}
else if (MatchSwitch(switchKey, "inputformat", "in") || MatchSwitch(switchKey, "if", "if"))
else if (MatchSwitch(switchKey, "inputformat", "inp") || MatchSwitch(switchKey, "if", "if"))
{
ParseFormat(args, ref i, ref _inFormat, CommandLineParameterParserStrings.MissingInputFormatParameter);
}