C# equivalent of Unix getopt().
Namespace: EnterpriseDT.UtilAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
| C# |
|---|
public class GetOpt |
| Visual Basic |
|---|
Public Class GetOpt |
| Visual C++ |
|---|
public ref class 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.