|
Joutsen.ArgumentsParsing
v0.2.1
|
An argument that parses multiple input values in order to create a list. More...
Public Member Functions | |
| CollectionArgument (string name, ValueCount valueCount, bool required=true, CollectionType defaultValue=default(CollectionType), string destination=null, string help=null) | |
| Creates a new instance of the argument. More... | |
| override string | Usage (string name=null) |
| override string | Description (string name=null, string alternative=null) |
Public Member Functions inherited from Joutsen.ArgumentsParsing.TargetPropertyArgument< CollectionType > | |
| ArgumentLiteralParser | GetParser () |
| Fetchs the literal parser for this argument. More... | |
Static Public Member Functions | |
| static CollectionArgument< CollectionType, ValueType > | Create< TargetType, CollectionType, ValueType > (string name, ValueCount valueCount, bool required=true, CollectionType defaultValue=default(CollectionType), Expression< Func< TargetType, CollectionType >> destination=null, string help=null) |
| Creates a new instance of the CollectionArgument. More... | |
Properties | |
| String | ValueStartDelimiter [get, set] |
| The delimiter indicating the start of the combined value. More... | |
| String | ValueEndDelimiter [get, set] |
| The delimiter indicating the end of the combined value. More... | |
| String | ValuePartsConnector [get, set] |
| A term that is used to connect the values from the input list into a single parsed one. More... | |
| bool | KeepDelimiters [get, set] |
| Determiens wether the delimiters are part of the resulting value or not. More... | |
| SimpleTypeConverter< String, ValueType > | TypeConverter [get, set] |
Properties inherited from Joutsen.ArgumentsParsing.TargetPropertyArgument< CollectionType > | |
| String | Name [get] |
| bool | IsRequired [get] |
Additional Inherited Members | |
Protected Member Functions inherited from Joutsen.ArgumentsParsing.TargetPropertyArgument< CollectionType > | |
| TargetPropertyArgument (ArgumentReader< ValueType > reader, string name, bool required, ValueType defaultValue, string destination, string help, bool isFlag) | |
| Creates a new instance of the argument. More... | |
Protected Attributes inherited from Joutsen.ArgumentsParsing.TargetPropertyArgument< CollectionType > | |
| string | helpText |
| TargetPropertyParser< ValueType > | parser |
An argument that parses multiple input values in order to create a list.
A static class offering convenient ways to create CollectionArguments.
| CollectionType | : | Collection<ValueType> | |
| CollectionType | : | new() |
| Joutsen.ArgumentsParsing.CollectionArgument< CollectionType, ValueType >.CollectionArgument | ( | string | name, |
| ValueCount | valueCount, | ||
| bool | required = true, |
||
| CollectionType | defaultValue = default(CollectionType), |
||
| string | destination = null, |
||
| string | help = null |
||
| ) |
Creates a new instance of the argument.
| name | the name of the argument |
| valueCount | the operator that determines how any values to parse |
| required | indicates wether this argument has to appear in the input list or if it is optional |
| defaultValue | the value that wil be set onthe target for this argument if it is not required and did not appear int he input list |
| destination | the property name of the target instance which shall receive the parsed value. If this is null the name will be used instead. |
| help | a help text describing the parameter. It will be used to generate the description of the argument. |
|
static |
Creates a new instance of the CollectionArgument.
| TargetType | the type of the target object that will receive the parsed values. |
| CollectionType | the type of the collection of the argument and the property on the target object |
| ValueType | the type of the elements of the collection |
| name | the name of the argument |
| valueCount | the operator that determines how any values to parse |
| required | indicates wether this argument has to appear in the input list or if it is optional |
| defaultValue | the value that wil be set onthe target for this argument if it is not required and did not appear int he input list |
| destination | an expression describing the property of the target instance which shall recieve the parsed value. If this is null the target property will be found using the name of the argument. |
| help | a help text describing the parameter. It will be used to generate the description of the argument. |
| CollectionType | : | Collection<ValueType> | |
| CollectionType | : | new() |
|
virtual |
Reimplemented from Joutsen.ArgumentsParsing.TargetPropertyArgument< CollectionType >.
|
virtual |
Reimplemented from Joutsen.ArgumentsParsing.TargetPropertyArgument< CollectionType >.
|
getset |
Determiens wether the delimiters are part of the resulting value or not.
|
getset |
|
getset |
The delimiter indicating the end of the combined value.
|
getset |
A term that is used to connect the values from the input list into a single parsed one.
|
getset |
The delimiter indicating the start of the combined value.
1.8.13