|
Joutsen.ArgumentsParsing v0.3.0+1-ga4c84ed
|
A sub command that can be handled by the parser. More...
Public Member Functions | |
| void | AddArgument (ParserArgument argument) |
| Adds a new argument to the sub parser. More... | |
| void | AddArgument (string name, string alternative, ParserArgument argument) |
| Adds a new argument that is identified by its name or an alternative name to the sub parser. More... | |
| void | AddArgument (string name, ParserArgument argument) |
| Adds a new argument that is identified by its name to the sub parser. More... | |
| void | AddArgument (DisplayArgument argument) |
| Adds a new argument that will display a message when invoked during parsing. More... | |
| void | AddArgument< FlagValueType > (FlagArgument< FlagValueType > argument) |
| Adds a new argument that represents a flag. More... | |
| void | AddArgumentsGroup (ArgumentsGroup group) |
| Adds a new argument group to the sub parser. More... | |
| MutuallyExclusiveArgumentsGroup | AddMutuallyExclusiveGroup (String name, String prefix="-", bool isRequired=false) |
| A short hand method for adding a mutually exclusive arguments group. More... | |
| SubParser | AddSubParser (String name) |
| Adds a new subparser to the sub parser. More... | |
| SubParser | AddSubParser (String name, String help) |
| Adds a new subparser to the sub parser. More... | |
| SubParser | AddSubParser (String name, String destination, String help) |
| Adds a new subparser to the sub parser. More... | |
| SubParser< ResultType > | AddSubParser< ResultType > (String name) |
| Adds a new subparser to the sub parser that will create a typed result. More... | |
| SubParser< ResultType > | AddSubParser< ResultType > (String name, String help) |
| Adds a new subparser to the sub parser that will create a typed result. More... | |
| SubParser< ResultType > | AddSubParser< ResultType > (String name, String destination, String help) |
| Adds a new subparser to the sub parser that will create a typed result. More... | |
| SubParser< ResultType > | AddSubParser< TargetType, ResultType > (String name, Expression< Func< TargetType, ResultType > > destination, String help) |
| Adds a new subparser to the sub parser that will create a typed result. More... | |
| SubParser< ResultType > | AddSubParser< ResultType > (String name, Func< ResultType > resultFactory) |
| Adds a new subparser to the sub parser that will create a typed result. More... | |
| SubParser< ResultType > | AddSubParser< ResultType > (String name, Func< ResultType > resultFactory, String help) |
| Adds a new subparser to the sub parser that will create a typed result. More... | |
| SubParser< ResultType > | AddSubParser< ResultType > (String name, String destination, Func< ResultType > resultFactory, String help) |
| Adds a new subparser to the sub parser that will create a typed result. More... | |
| SubParser< ResultType > | AddSubParser< TargetType, ResultType > (String name, Expression< Func< TargetType, ResultType > > destination, Func< ResultType > resultFactory, String help) |
| Adds a new subparser to the sub parser that will create a typed result. More... | |
Properties | |
| String | Name [get] |
| The name that identifies the command in the input list. More... | |
| Action< ParseResult > | ResultAction [set] |
| An action that will be called with the parsed result of the sub parser if assigned. More... | |
| Action< ResultType > | TypedResultAction [set] |
| An action that will be called with the parsed result of the sub parser, if assigned. More... | |
A sub command that can be handled by the parser.
A sub command that can be handled by the parser and creates and stores the parsed values in a typed target.
| ResultType | the type of the target |
| void Joutsen.ArgumentsParsing.SubParser< ResultType >.AddArgument | ( | DisplayArgument | argument | ) |
Adds a new argument that will display a message when invoked during parsing.
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
| void Joutsen.ArgumentsParsing.SubParser< ResultType >.AddArgument | ( | ParserArgument | argument | ) |
Adds a new argument to the sub parser.
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
| void Joutsen.ArgumentsParsing.SubParser< ResultType >.AddArgument | ( | string | name, |
| ParserArgument | argument | ||
| ) |
Adds a new argument that is identified by its name to the sub parser.
| name | the name that identifies this argument in the input list |
| argument | the argument |
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
| void Joutsen.ArgumentsParsing.SubParser< ResultType >.AddArgument | ( | string | name, |
| string | alternative, | ||
| ParserArgument | argument | ||
| ) |
Adds a new argument that is identified by its name or an alternative name to the sub parser.
| name | the name that identifies this argument in the input list |
| alternative | the alternative name that identifies this argument in the input list |
| argument | the argument |
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
| void Joutsen.ArgumentsParsing.SubParser< ResultType >.AddArgument< FlagValueType > | ( | FlagArgument< FlagValueType > | argument | ) |
Adds a new argument that represents a flag.
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
| void Joutsen.ArgumentsParsing.SubParser< ResultType >.AddArgumentsGroup | ( | ArgumentsGroup | group | ) |
Adds a new argument group to the sub parser.
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
| MutuallyExclusiveArgumentsGroup Joutsen.ArgumentsParsing.SubParser< ResultType >.AddMutuallyExclusiveGroup | ( | String | name, |
| String | prefix = "-", |
||
| bool | isRequired = false |
||
| ) |
A short hand method for adding a mutually exclusive arguments group.
| name | the name of the new group |
| prefix | the prefix of the named arguments in the group |
| isRequired | determines if one of the arguments in the group needs to be present when parsing or if the group's arguments are optional. |
| SubParser Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser | ( | String | name | ) |
Adds a new subparser to the sub parser.
| name | the name identifying the command this parser represents in the input string |
| SubParser Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser | ( | String | name, |
| String | destination, | ||
| String | help | ||
| ) |
Adds a new subparser to the sub parser.
| name | the name identifying the command this parser represents in the input string |
| destination | the name of the key or property the parsed values will be available at after parsing |
| help | an additional help text that describes the command of the subparser |
| SubParser Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser | ( | String | name, |
| String | help | ||
| ) |
Adds a new subparser to the sub parser.
| name | the name identifying the command this parser represents in the input string |
| help | an additional help text that describes the command of the subparser |
| SubParser< ResultType > Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser< ResultType > | ( | String | name | ) |
Adds a new subparser to the sub parser that will create a typed result.
| ResultType | the type of the instance that will contain all values parsed by the subparser |
| name | the name identifying the command this parser represents in the input string |
| ResultType | : | new() |
| SubParser< ResultType > Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser< ResultType > | ( | String | name, |
| Func< ResultType > | resultFactory | ||
| ) |
Adds a new subparser to the sub parser that will create a typed result.
| ResultType | the type of the instance that will contain all values parsed by the subparser |
| name | the name identifying the command this parser represents in the input string |
| SubParser< ResultType > Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser< ResultType > | ( | String | name, |
| Func< ResultType > | resultFactory, | ||
| String | help | ||
| ) |
Adds a new subparser to the sub parser that will create a typed result.
| ResultType | the type of the instance that will contain all values parsed by the subparser |
| name | the name identifying the command this parser represents in the input string |
| resultFactory | a factory method to create an instance of ResultType |
| help | an additional help text that describes the command of the subparser |
| SubParser< ResultType > Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser< ResultType > | ( | String | name, |
| String | destination, | ||
| Func< ResultType > | resultFactory, | ||
| String | help | ||
| ) |
Adds a new subparser to the sub parser that will create a typed result.
| ResultType | the type of the instance that will contain all values parsed by the subparser |
| name | the name identifying the command this parser represents in the input string |
| destination | the name of the key or property the parsed values will be available at after parsing |
| resultFactory | a factory method to create an instance of ResultType |
| help | an additional help text that describes the command of the subparser |
| SubParser< ResultType > Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser< ResultType > | ( | String | name, |
| String | destination, | ||
| String | help | ||
| ) |
Adds a new subparser to the sub parser that will create a typed result.
| ResultType | the type of the instance that will contain all values parsed by the subparser |
| name | the name identifying the command this parser represents in the input string |
| destination | the name of the key or property the parsed values will be available at after parsing |
| help | an additional help text that describes the command of the subparser |
| ResultType | : | new() |
| SubParser< ResultType > Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser< ResultType > | ( | String | name, |
| String | help | ||
| ) |
Adds a new subparser to the sub parser that will create a typed result.
| ResultType | the type of the instance that will contain all values parsed by the subparser |
| name | the name identifying the command this parser represents in the input string |
| help | an additional help text that describes the command of the subparser |
| ResultType | : | new() |
| SubParser< ResultType > Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser< TargetType, ResultType > | ( | String | name, |
| Expression< Func< TargetType, ResultType > > | destination, | ||
| Func< ResultType > | resultFactory, | ||
| String | help | ||
| ) |
Adds a new subparser to the sub parser that will create a typed result.
| ResultType | the type of the instance that will contain all values parsed by the subparser |
| TargetType | the type of the instance that will be used as the target of the parse process |
| name | the name identifying the command this parser represents in the input string |
| destination | an expression describing the target property the result is assigned to |
| resultFactory | a factory method to create an instance of ResultType |
| help | an additional help text that describes the command of the subparser |
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
| SubParser< ResultType > Joutsen.ArgumentsParsing.SubParser< ResultType >.AddSubParser< TargetType, ResultType > | ( | String | name, |
| Expression< Func< TargetType, ResultType > > | destination, | ||
| String | help | ||
| ) |
Adds a new subparser to the sub parser that will create a typed result.
| ResultType | the type of the instance that will contain all values parsed by the subparser |
| TargetType | the type of the instance that will be used as the target of the parse process |
| name | the name identifying the command this parser represents in the input string |
| destination | an expression describing the target property the result is assigned to |
| help | an additional help text that describes the command of the subparser |
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
| ResultType | : | new() |
|
get |
The name that identifies the command in the input list.
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
|
set |
An action that will be called with the parsed result of the sub parser if assigned.
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.
|
set |
An action that will be called with the parsed result of the sub parser, if assigned.
Implemented in Joutsen.ArgumentsParsing.Parsers.DefaultSubParser< TResultType >.