trigger help display using HelpException
This commit is contained in:
parent
ea308e9b59
commit
46b799af01
6 changed files with 58 additions and 10 deletions
|
@ -77,6 +77,11 @@ namespace Microsoft.DotNet.Cli
|
|||
return ProcessArgs(args);
|
||||
}
|
||||
}
|
||||
catch (HelpException e)
|
||||
{
|
||||
Reporter.Output.Write(e.Message);
|
||||
return e.IsError ? 1 : 0;
|
||||
}
|
||||
catch (Exception e) when (e.ShouldBeDisplayedAsError())
|
||||
{
|
||||
Reporter.Error.WriteLine(CommandContext.IsVerbose() ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue