Command line option description. More...
Public Types | |
enum | ArgumentPolicy { None, Optional, Required } |
Option argument policy. More... | |
Public Member Functions | |
Option (char sSig, string lSig, ArgumentPolicy argPolicy) | |
Command line option constructor. | |
Option (char sSig, string lSig) | |
Command line option constructor. | |
Option (char sSig, ArgumentPolicy argPolicy) | |
Command line option constructor. | |
Option (char sSig) | |
Command line option constructor. | |
bool | Match (string arg) |
Check whether a string match with this option. | |
Properties | |
ArgumentPolicy | ArgPolicy [get] |
Get this Option argument policy. | |
string | SignatureLong [get] |
Get this Option long signature. | |
char | SignatureShort [get] |
Get this Option short signature. |
Command line option description.
Derm.Util.CommandLine.Option.Option | ( | char | sSig | ) |
Command line option constructor.
sSig | Short signature for option. A System.Char |
Derm.Util.CommandLine.Option.Option | ( | char | sSig, | |
ArgumentPolicy | argPolicy | |||
) |
Command line option constructor.
sSig | Short signature for option. A System.Char | |
argPolicy | Option argument policy. A ArgumentPolicy |
Derm.Util.CommandLine.Option.Option | ( | char | sSig, | |
string | lSig | |||
) |
Command line option constructor.
sSig | Short signature for option. A System.Char | |
lSig | Long signature for option. A System.String |
Derm.Util.CommandLine.Option.Option | ( | char | sSig, | |
string | lSig, | |||
ArgumentPolicy | argPolicy | |||
) |
Command line option constructor.
sSig | Short signature for option. A System.Char | |
lSig | Long signature for option. A System.String | |
argPolicy | Option argument policy. A ArgumentPolicy |
bool Derm.Util.CommandLine.Option.Match | ( | string | arg | ) |
Check whether a string match with this option.
arg | A System.String |
ArgumentPolicy Derm.Util.CommandLine.Option.ArgPolicy [get] |
Get this Option argument policy.
string Derm.Util.CommandLine.Option.SignatureLong [get] |
Get this Option long signature.
char Derm.Util.CommandLine.Option.SignatureShort [get] |
Get this Option short signature.