Skip to content

Commit aa680a2

Browse files
committed
Fix "Unknown option: help" not being displayed
This fixes commandlineparser#596.
1 parent 9b748b9 commit aa680a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/CommandLine/ErrorExtensions.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ public static ParserResult<T> ToParserResult<T>(this IEnumerable<Error> errors,
1919
public static IEnumerable<Error> OnlyMeaningfulOnes(this IEnumerable<Error> errors)
2020
{
2121
return errors
22-
.Where(e => !e.StopsProcessing)
23-
.Where(e => !(e.Tag == ErrorType.UnknownOptionError
24-
&& ((UnknownOptionError)e).Token.EqualsOrdinalIgnoreCase("help")));
22+
.Where(e => !e.StopsProcessing);
2523
}
2624

2725
}

0 commit comments

Comments
 (0)