edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

GetOpt Class

C# equivalent of Unix getopt().

Definition

Namespace: EnterpriseDT.Util
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public class GetOpt
Inheritance
Object    GetOpt

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.

Constructors

Properties

ErrorMessages Get the error messages
OptArg Get the current option's argument
Opterr Set to false if error messages should be supressed
Options Get the options configuration string
Program Get the program name

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
Getopt Get the next option character
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also