diff --git a/src/CommandLine/Text/HelpText.cs b/src/CommandLine/Text/HelpText.cs index f5e9a7b9..e5983007 100644 --- a/src/CommandLine/Text/HelpText.cs +++ b/src/CommandLine/Text/HelpText.cs @@ -349,7 +349,7 @@ public static HelpText AutoBuild( if (onError != null && parserResult.Tag == ParserResultType.NotParsed) { errors = ((NotParsed)parserResult).Errors; - if (errors.IsHelp() || errors.OnlyMeaningfulOnes().Any()) + if (errors.IsHelp() || errors.IsVersion() || errors.OnlyMeaningfulOnes().Any()) auto = onError(auto); }