Documentation for the C# command-line option parsing library

DupOptHandleType Enumeration

Define the behavior of the parser if an option is duplicated

public enum DupOptHandleType

Remarks

If the option is not defined as a option that allows multiple values, then this enumeration specifies the action to take when a duplicate option is given at the command-line.

Members

Member Name Description
Allow Allow the duplicate declaration, using the last declaration to specify the value
Warning Allow the duplicate declaration, using the last declaration to specify the value, but send a warning back to the caller of the parser (see the OptionWarning event)
Error Deny the duplicate declaration, throwing a ParseException

Requirements

Namespace: CommandLine.OptParse

Assembly: CSharpOptParse (in CSharpOptParse.dll)

See Also

CommandLine.OptParse Namespace