throw exception on parse errors
This commit is contained in:
parent
11b7e7e449
commit
204d8594bf
15 changed files with 48 additions and 21 deletions
|
|
@ -25,7 +25,7 @@ namespace Microsoft.DotNet.Tools.Build
|
|||
|
||||
var result = parser.ParseFrom("dotnet build", args);
|
||||
|
||||
result.ShowHelpIfRequested();
|
||||
result.ShowHelpOrErrorIfAppropriate();
|
||||
|
||||
var appliedBuildOptions = result["dotnet"]["build"];
|
||||
|
||||
|
|
|
|||
Reference in a new issue