edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

GetOpt Class

C# equivalent of Unix getopt().
Inheritance Hierarchy
SystemObject
  EnterpriseDT.UtilGetOpt

Namespace:  EnterpriseDT.Util
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
public class GetOpt

The GetOpt type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyErrorMessages
Get the error messages
Public propertyOptArg
Get the current option's argument
Public propertyOpterr
Set to false if error messages should be supressed
Public propertyOptions
Get the options configuration string
Public propertyProgram
Get the program name
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetopt
Get the next option character
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Only partially implemented, just enough so it is useful internally. Short option are of the form -a -b -c or equivalently -abc for options with no arguments, or -a foo -b foo for arguments, or even -afoo -bfoo. Arguments may be optional or required. If optional, they must be supplied as -afoo rather than -a foo. The options are specified by a string containing each option char. If a character is followed by a single colon, then that option has a required argument. If the character is followed by two colons, then that option has an argument that is not required. No colon means no argument.
See Also