Derm.Util.CommandLine.Option Class Reference

Command line option description. More...

List of all members.

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.

Detailed Description

Command line option description.


Member Enumeration Documentation

Option argument policy.

Enumerator:
None 

No option arguments are required.

Optional 

Option argument is optional.

Required 

Option argument is required.


Constructor & Destructor Documentation

Derm.Util.CommandLine.Option.Option ( char  sSig  ) 

Command line option constructor.

Parameters:
sSig Short signature for option. A System.Char
Derm.Util.CommandLine.Option.Option ( char  sSig,
ArgumentPolicy  argPolicy 
)

Command line option constructor.

Parameters:
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.

Parameters:
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.

Parameters:
sSig Short signature for option. A System.Char
lSig Long signature for option. A System.String
argPolicy Option argument policy. A ArgumentPolicy

Member Function Documentation

bool Derm.Util.CommandLine.Option.Match ( string  arg  ) 

Check whether a string match with this option.

Parameters:
arg A System.String
Returns:
A System.Boolean

Property Documentation

ArgumentPolicy Derm.Util.CommandLine.Option.ArgPolicy [get]

Get this Option argument policy.

Returns:
A System.Char
string Derm.Util.CommandLine.Option.SignatureLong [get]

Get this Option long signature.

Returns:
A System.Char
char Derm.Util.CommandLine.Option.SignatureShort [get]

Get this Option short signature.

Returns:
A System.Char


Services powered by Get Deus Ex Render Machina at SourceForge.net. Fast, secure and Free Open Source software downloads