Class ArgumentExtensions.
Expands the arguments.
Name | Description |
---|---|
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
IEnumerable<System.String>.
Class ParserResultException.
Initializes a new instance of the class.
Name | Description |
---|---|
failureResult | DNX.Helpers.CommandLine.Results.ExtendedParserResult{System.Object} The failure result. |
Initializes a new instance of the class.
Name | Description |
---|---|
failureResult | DNX.Helpers.CommandLine.Results.ExtendedParserResult{System.Object} The failure result. |
message | System.String The message. |
Initializes a new instance of the class.
Name | Description |
---|---|
failureResult | DNX.Helpers.CommandLine.Results.ExtendedParserResult{System.Object} The failure result. |
message | System.String The message. |
innerException | System.Exception The inner exception. |
Gets the failure result as.
T.
Class ParserResultException.
Initializes a new instance of the class.
Name | Description |
---|---|
extendedParserResult | DNX.Helpers.CommandLine.Results.IExtendedParserResult{`0} The extended parser result. |
Initializes a new instance of the class.
Name | Description |
---|---|
extendedParserResult | DNX.Helpers.CommandLine.Results.IExtendedParserResult{`0} The extended parser result. |
message | System.String The message. |
Initializes a new instance of the class.
Name | Description |
---|---|
extendedParserResult | DNX.Helpers.CommandLine.Results.IExtendedParserResult{`0} The extended parser result. |
message | System.String The message. |
innerException | System.Exception The inner exception. |
Gets the parserResult.
Gets a value indicating whether [help requested].
Class HelpBuilder.
Builds the templated help text.
System.String.
Builds the templated help text.
Name | Description |
---|---|
parserResult | CommandLine.ParserResult{``0} The parser result. |
System.String.
Builds the templated help text.
Name | Description |
---|---|
template | CommandLine.ParserResult{``0} The template. |
parserResult | System.String The parser result. |
System.String.
Builds the templated help text.
Name | Description |
---|---|
template | CommandLine.ParserResult{``0} The template. |
templateEngine | System.String The template engine. |
parserResult | DNX.Helpers.CommandLine.Templating.ITemplateEngine The parser result. |
System.String.
Gets the help text.
Name | Description |
---|---|
parserResult | CommandLine.ParserResult{``0} The parserx result. |
verbsIndex | System.Boolean if set to true [verbs index]. |
consoleWidth | System.Int32 Width of the console. |
System.String.
Class ArgumentsMap.
Creates this instance.
System.Object.
Class ParserError.
Gets the identifier.
Gets or sets the message.
Class Templates.
Gets the standard template.
The standard template lines
Interface IParserSettingsConfigurator
Configures the Parser Settings
Name | Description |
---|---|
settings | CommandLine.ParserSettings The settings. |
Interface ISettingsValidator
Validates this instance.
Class ParserExtendedSettings.
Initializes a new instance of the class.
Gets or sets the default template engine.
Gets the extended settings.
Name | Description |
---|---|
argumentsInstance | System.Object The arguments instance. |
ParserExtendedSettings.
Gets or sets the width of the help text.
Resets the settings.
Gets or sets the type of the default template engine.
Gets or sets a value indicating whether the Parser should throw an Exception if parsing fails
Class ParserVerbExtensions.
Parses the specified arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
ParserResult.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Parses the specified Command arguments.
Name | Description |
---|---|
parser | CommandLine.Parser The parser. |
args | System.Collections.Generic.IEnumerable{System.String} The arguments. |
CommandLine.ParserResult<System.Object>.
Class ParserManager.
Gets the default parser.
Gets a parser for the specified Arguments type
Parser.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Command types
CommandLine.ParserResult<System.Object>.
Gets a parser for the specified Arguments type and parses
Name | Description |
---|---|
args | System.String[] The arguments. |
CommandLine.ParserResult.
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Gets a parser for the specified Command types and parses
Class ParserResultExtensions.
Creates the extended result.
Name | Description |
---|---|
result | CommandLine.ParserResult{``0} The result. |
parser | CommandLine.Parser The parser. |
IExtendedParserResult.
Returns the failure result
Name | Description |
---|---|
result | CommandLine.ParserResult{``0} The result. |
NotParsed.
Gets the arguments.
Name | Description |
---|---|
result | CommandLine.ParserResult{``0} The result. |
T.
Gets the errors.
Name | Description |
---|---|
result | CommandLine.ParserResult{``0} The result. |
System.Collections.Generic.IEnumerable<CommandLine.Error>.
Oks the specified result.
Name | Description |
---|---|
result | CommandLine.ParserResult{``0} The result. |
true if XXXX, false otherwise.
Post processes the result.
Name | Description |
---|---|
result | DNX.Helpers.CommandLine.Results.IExtendedParserResult{``0} The result. |
ParserResult.
Exceptions.ExtendedParserResultException`1:
Returns the success result
Name | Description |
---|---|
result | CommandLine.ParserResult{``0} The result. |
Parsed.
Custom validation on a parsed arguments instance
Name | Description |
---|---|
result | CommandLine.Parsed{``0} |
Class ParserSettingsChain.
Creates the specified chain.
Name | Description |
---|---|
chain | System.Action{CommandLine.ParserSettings}[] The chain. |
Action.
Creates the specified chain.
Name | Description |
---|---|
chain | System.Collections.Generic.IList{System.Action{CommandLine.ParserSettings}} The chain. |
Action.
Class ParserSettingsCustomiserHelper.
Determines whether this instance can customise the settings for the specified parser.
Name | Description |
---|---|
type | System.Type The type. |
true if this instance can customise the settings for the specified parser; otherwise, false.
Determines whether this instance can customise the settings for the specified parser.
true if this instance can customise the settings for the specified parser; otherwise, false.
The default parser customiser
Gets the settings customiser.
Action.
Class ExtendedParserResult.
Initializes a new instance of the class.
Name | Description |
---|---|
result | CommandLine.ParserResult{`0} The result. |
parser | CommandLine.Parser The parser. |
Gets the parser.
Gets the result.
Gets a value indicating whether this is success.
Class ExtendedParserResultExtensions.
Withes the not parsed.
Name | Description |
---|---|
result | DNX.Helpers.CommandLine.Results.IExtendedParserResult{``0} The result. |
action | System.Action{System.Collections.Generic.IEnumerable{CommandLine.Error}} The action. |
ParserResult.
Withes the parsed.
Name | Description |
---|---|
result | DNX.Helpers.CommandLine.Results.IExtendedParserResult{``0} The result. |
action | System.Action{``0} The action. |
ParserResult.
Withes the parsed.
Name | Description |
---|---|
result | DNX.Helpers.CommandLine.Results.IExtendedParserResult{System.Object} The result. |
action | System.Action{``0} The action. |
ParserResult<System.Object>.
Interface IExtendedParserResult
Gets the parser.
Gets the result.
Gets a value indicating whether this is success.
Class ExtendedParserSettings.
Initializes a new instance of the class.
Gets or sets the default template engine.
Gets or sets the width of the help text.
Resets the settings.
Gets or sets the type of the default template engine.
Gets or sets a value indicating whether the Parser should throw an Exception if parsing fails
Class DotLiquidTemplateEngine.
Initializes a new instance of the class.
Adds the object.
Name | Description |
---|---|
name | System.String The name. |
instance | System.Object The instance. |
Renders the specified template lines.
Name | Description |
---|---|
templateLines | System.Collections.Generic.IList{System.String} The template lines. |
System.String.
Renders the specified template.
Name | Description |
---|---|
template | System.String The template. |
System.String.
System.NotImplementedException:
Resets this instance.
The substitutables
Class DotLiquidTemplateEngine.
Initializes a new instance of the class.
Renders the specified template.
Name | Description |
---|---|
template | System.String The template. |
System.String.
Interface ITemplateEngine
Adds the object.
Name | Description |
---|---|
name | System.String The name. |
instance | System.Object The instance. |
Renders the specified template lines.
Name | Description |
---|---|
templateLines | System.Collections.Generic.IList{System.String} The template lines. |
System.String.
Renders the specified template.
Name | Description |
---|---|
template | System.String The template. |
System.String.
Resets this instance.
Arguments class for command line
Program controller class
Defines the entry point of the application.
Name | Description |
---|---|
args | System.String[] The arguments. |
System.Int32.
Runs the program using the specified arguments.
Name | Description |
---|---|
arguments | SampleApp.Arguments The arguments. |