Fix command-line parser to support --parameters

This commit is contained in:
Andrew Schwartzmeyer
2016-05-17 13:28:44 -07:00
parent c4bfc52c76
commit d8b2d1fb0e
@@ -365,6 +365,12 @@ namespace Microsoft.PowerShell
switchKey = switchKey.Substring(1);
// chop off the second dash so we're agnostic wrt specifying - or --
if (SpecialCharacters.IsDash(switchKey[0]))
{
switchKey = switchKey.Substring(1);
}
if (MatchSwitch(switchKey, "help", "h") || MatchSwitch(switchKey, "?", "?"))
{
showHelp = true;