trigger help display using HelpException

This commit is contained in:
Jon Sequeira 2017-03-09 12:31:34 -08:00
commit 46b799af01
6 changed files with 58 additions and 10 deletions

View file

@ -25,6 +25,8 @@ namespace Microsoft.DotNet.Tools.Publish
var result = parser.ParseFrom("dotnet publish", args);
result.ShowHelpIfRequested();
msbuildArgs.Add("/t:Publish");
var appliedPublishOption = result["dotnet"]["publish"];