Documentation for the C# command-line option parsing library

Parser Methods

The methods of the Parser class are listed below. For a complete list of Parser class members, see the Parser Members topic.

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.

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