Definition at line 11 of file ErrorExtensions.cs.
◆ OnlyMeaningfulOnes()
static IEnumerable< Error > CommandLine.ErrorExtensions.OnlyMeaningfulOnes |
( |
this IEnumerable< Error > |
errors | ) |
|
|
static |
Definition at line 23 of file ErrorExtensions.cs.
24 {
25 return errors
26 .Where(e => !e.StopsProcessing)
27 .Where(e => !(e.Tag ==
ErrorType.UnknownOptionError &&
28 ((UnknownOptionError)e).Token.EqualsOrdinalIgnoreCase("help"))
29 );
30 }
ErrorType
Discriminator enumeration of CommandLine.Error derivates.
◆ ToParserResult< T >()
static ParserResult< T > CommandLine.ErrorExtensions.ToParserResult< T > |
( |
this IEnumerable< Error > |
errors, |
|
|
T |
instance |
|
) |
| |
|
static |
Definition at line 13 of file ErrorExtensions.cs.
14 {
15 return errors.Any()
16 ? new NotParsed<T>(instance.GetType()
17 .ToTypeInfo(),
18 errors
19 )
20 : (ParserResult<T>)new
Parsed<T>(instance);
21 }
@ Parsed
Value of CommandLine.Parsed<T> type.
The documentation for this class was generated from the following file: