We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1de518f commit d69be74Copy full SHA for d69be74
src/CommandLine/Text/HelpText.cs
@@ -273,9 +273,7 @@ public static HelpText AutoBuild<T>(
273
if (onError != null && parserResult.Tag == ParserResultType.NotParsed)
274
{
275
errors = ((NotParsed<T>)parserResult).Errors;
276
- if (errors.IsHelp())
277
- auto = onError(auto);
278
- else if (errors.OnlyMeaningfulOnes().Any())
+ if (errors.IsHelp() || errors.OnlyMeaningfulOnes().Any())
279
auto = onError(auto);
280
}
281
0 commit comments