Documentation for the C# command-line option parsing library

Parser Members

Parser overview

Public Instance Constructors

Parser Constructor Constructor

Public Instance Properties

CaseSensitive Get or set if the parsing of options should consider the case of the options
DupOptHandleType Get or set how the parser should handle un-expected duplicate option declarations
OptStyle Get or set the option style to parse
ResultsHandler Get the handler for the parser
UnixShortOption Get how to handle short unix options (with or without bundling)
UnknownOptHandleType Get or set how to handle unknown options

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetOptionDefinitions Get all of the option definitions that have been declared
GetOptionDescriptionsObsolete. Get a collection of option value, option description pairs
GetOptions Get the options defined for this parser
GetType (inherited from Object) Gets the Type of the current instance.
ParseOverloaded. Parse the GetCommandLineArgs for options using the parser settings
PrintUsageOverloaded. Prints out the usage of this program to the given text writer
ToString (inherited from Object) Returns a String that represents the current Object.

Public Instance Events

OptionWarning Event fired when a warning event occurs

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Parser Class | CommandLine.OptParse Namespace | UsageBuilder | PropertyFieldParserHelper | DictionaryParserHelper | IOptionResults | ParserFactory