C# Class Gnu.Getopt.LongOpt

This object represents the definition of a long option in the C# port of GNU getopt. An array of LongOpt objects is passed to the Getopt object to define the list of valid long options for a given parsing session. Refer to the Getopt documentation for details on the format of long options.
Mostra file Open project: miratechcorp/SQLServerImageUploader Class Usage Examples

Public Methods

Method Description
LongOpt ( string name, Argument hasArg, StringBuilder flag, int val ) : System

Create a new LongOpt object with the given parameter values. If the value passed as hasArg is not valid, then an ArgumentException is thrown.

Method Details

LongOpt() public method

Create a new LongOpt object with the given parameter values. If the value passed as hasArg is not valid, then an ArgumentException is thrown.
/// Is thrown if the param is not one of /// , or /// . ///
public LongOpt ( string name, Argument hasArg, StringBuilder flag, int val ) : System
name string /// The long option string. ///
hasArg Argument /// Indicates whether the option has no argument /// (), a required argument /// () or an optional argument /// (). ///
flag StringBuilder /// If non-null, this is a location to store the value of /// when this option is encountered, otherwise /// is treated as the equivalent short option /// character. ///
val int /// The value to return for this long option, or the equivalent single /// letter option to emulate if flag is null. ///
return System