![]() |
virtualSoC
0.6.2
baskett
|
A set argument is an option that only takes values from a predefined list. More...
Public Member Functions | |
SetArgument (string[] validOptions, string defaultValue, bool required=false) | |
Initializes a new instance of the SetArgument class. More... | |
SetArgument (string[] validOptions, string defaultValue, bool required=false) | |
Initializes a new instance of the SetArgument class. More... | |
SetArgument (string[] validOptions, string defaultValue, bool required=false) | |
Initializes a new instance of the SetArgument class. More... | |
virtual object | GetValue () |
Gets the value of this argument. More... | |
virtual object | GetValue () |
Gets the value of this argument. More... | |
virtual object | GetValue () |
Gets the value of this argument. More... | |
virtual void | Reset () |
Resets this argument. More... | |
virtual void | Reset () |
Resets this argument. More... | |
virtual void | Reset () |
Resets this argument. More... | |
virtual void | SetValue (object value) |
Sets the value for this argument. More... | |
virtual void | SetValue (object value) |
Sets the value for this argument. More... | |
virtual void | SetValue (object value) |
Sets the value for this argument. More... | |
Properties | |
object | DefaultValue [get, set] |
The default value that will be used if no value was passed on the command line. More... | |
string | HelpMessage [get, set] |
The message that will be displayed in the help page for your program. More... | |
string | HelpPlaceholder [get, set] |
Value that will be shown (in upper case) in the usage page for this argument. Setting this to null will display the default value (i.e. OPTION, COLLECTION, etc.). More... | |
bool | IsRequired [get, protected set] |
Flag indicating whether this argument is required, i.e. must be provided via the command line. More... | |
bool | NeedsValue [get, protected set] |
Indicates whether this argument requires an explicit option. More... | |
Action< object > | Processor [get, set] |
A method that can be executed when the command line arguments are processed. More... | |
bool | SupportsMultipleValues [get, protected set] |
Flag indicating whether multplie calls to SetValue will add a value or overwrite the existing one. More... | |
Func< object, bool > | Validator [get, set] |
A method that can be used to validate a value for this argument. More... | |
A set argument is an option that only takes values from a predefined list.
DotArgs.SetArgument.SetArgument | ( | string [] | validOptions, |
string | defaultValue, | ||
bool | required = false |
||
) |
Initializes a new instance of the SetArgument class.
validOptions | The valid options this argument may be given. |
defaultValue | The default value. |
required | Flag indicating whether this argument is required. |
DotArgs.SetArgument.SetArgument | ( | string [] | validOptions, |
string | defaultValue, | ||
bool | required = false |
||
) |
Initializes a new instance of the SetArgument class.
validOptions | The valid options this argument may be given. |
defaultValue | The default value. |
required | Flag indicating whether this argument is required. |
DotArgs.SetArgument.SetArgument | ( | string [] | validOptions, |
string | defaultValue, | ||
bool | required = false |
||
) |
Initializes a new instance of the SetArgument class.
validOptions | The valid options this argument may be given. |
defaultValue | The default value. |
required | Flag indicating whether this argument is required. |
|
virtualinherited |
Gets the value of this argument.
Reimplemented in DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.AliasArgument, DotArgs.AliasArgument, and DotArgs.AliasArgument.
|
virtualinherited |
Gets the value of this argument.
Reimplemented in DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.AliasArgument, DotArgs.AliasArgument, and DotArgs.AliasArgument.
|
virtualinherited |
Gets the value of this argument.
Reimplemented in DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.AliasArgument, DotArgs.AliasArgument, and DotArgs.AliasArgument.
|
virtualinherited |
Resets this argument.
Reimplemented in DotArgs.CollectionArgument, DotArgs.CollectionArgument, and DotArgs.CollectionArgument.
|
virtualinherited |
Resets this argument.
Reimplemented in DotArgs.CollectionArgument, DotArgs.CollectionArgument, and DotArgs.CollectionArgument.
|
virtualinherited |
Resets this argument.
Reimplemented in DotArgs.CollectionArgument, DotArgs.CollectionArgument, and DotArgs.CollectionArgument.
|
virtualinherited |
Sets the value for this argument.
value | The value to set. |
Reimplemented in DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.AliasArgument, DotArgs.AliasArgument, and DotArgs.AliasArgument.
|
virtualinherited |
Sets the value for this argument.
value | The value to set. |
Reimplemented in DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.AliasArgument, DotArgs.AliasArgument, and DotArgs.AliasArgument.
|
virtualinherited |
Sets the value for this argument.
value | The value to set. |
Reimplemented in DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.CollectionArgument, DotArgs.AliasArgument, DotArgs.AliasArgument, and DotArgs.AliasArgument.
|
getsetinherited |
The default value that will be used if no value was passed on the command line.
Using this when IsRequired is set will have no effect.
|
getsetinherited |
The message that will be displayed in the help page for your program.
|
getsetinherited |
Value that will be shown (in upper case) in the usage page for this argument. Setting this to null
will display the default value (i.e. OPTION, COLLECTION, etc.).
|
getprotected setinherited |
Flag indicating whether this argument is required, i.e. must be provided via the command line.
|
getprotected setinherited |
Indicates whether this argument requires an explicit option.
|
getsetinherited |
A method that can be executed when the command line arguments are processed.
|
getprotected setinherited |
Flag indicating whether multplie calls to SetValue will add a value or overwrite the existing one.
|
getsetinherited |
A method that can be used to validate a value for this argument.