Treat /? the same as --help (#5285)

* Fixes issue 4539

* Support -?
This commit is contained in:
Justin Goshi 2017-01-12 23:24:12 -10:00 committed by Piotr Puszkiewicz
parent be9134f512
commit f972cf80a9
4 changed files with 13 additions and 2 deletions

View file

@ -118,7 +118,9 @@ namespace Microsoft.DotNet.Cli
PrintInfo();
return 0;
}
else if (IsArg(args[lastArg], "h", "help"))
else if (IsArg(args[lastArg], "h", "help") ||
args[lastArg] == "-?" ||
args[lastArg] == "/?")
{
HelpCommand.PrintHelp();
return 0;