CommandLineArgumentErrorCategory Enumeration

Specifies the kind of error that occurred while parsing arguments.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public enum CommandLineArgumentErrorCategory

Members

Unspecified0 The category was not specified.
ArgumentValueConversion1 The argument value supplied could not be converted to the type of the argument.
UnknownArgument2 The argument name supplied does not name a known argument.
MissingNamedArgumentValue3 An argument name was supplied, but without an accompanying value.
DuplicateArgument4 An argument was supplied more than once.
TooManyArguments5 Too many positional arguments were supplied.
MissingRequiredArgument6 Not all required arguments were supplied.
InvalidDictionaryValue7 Invalid value for a dictionary argument; typically the result of a duplicate key.
CreateArgumentsTypeError8 An error occurred creating an instance of the arguments type (e.g. the constructor threw an exception).
ApplyValueError9 An error occurred applying the value of the argument (e.g. the property set accessor threw an exception).
NullArgumentValue10 An argument value was after conversion from a string, and the argument type is a value type or (in .Net 6.0 and later) a non-nullable reference type.
CombinedShortNameNonSwitch11 A combined short argument contains an argument that is not a switch.
ValidationFailed12 An instance of a class derived from the ArgumentValidationAttribute class failed to validate the argument.
DependencyFailed13 An argument failed a dependency check performed by the RequiresAttribute or the ProhibitsAttribute class.

See Also