Property | Type | Description | |
---|---|---|---|
DefaultHelpBuilderFactory | System.CommandLine.HelpBuilder | ||
DefaultHelpBuilderFactory | System.Collections.Generic | ||
DefaultTokenReplacer | bool | ||
GetChild | System.CommandLine.IdentifierSymbol | ||
ThrowIfInvalid | void |
Method | Description | |
---|---|---|
CommandLineConfiguration ( System.CommandLine.Command command, bool enablePosixBundling = true, bool enableDirectives = true, bool enableTokenReplacement = true, LocalizationResources? resources = null, IReadOnlyList |
Initializes a new instance of the CommandLineConfiguration class.
|
|
ThrowIfInvalid ( ) : void |
Throws an exception if the parser configuration is ambiguous or otherwise not valid. Due to the performance cost of this method, it is recommended to be used in unit testing or in scenarios where the parser is configured dynamically at runtime. |
Method | Description | |
---|---|---|
DefaultHelpBuilderFactory ( BindingContext context, int? requestedMaxWidth = null ) : System.CommandLine.HelpBuilder | ||
DefaultHelpBuilderFactory ( ) : System.Collections.Generic | ||
DefaultTokenReplacer ( string tokenToReplace, IReadOnlyList |
||
GetChild ( int index, System.CommandLine.Command command ) : System.CommandLine.IdentifierSymbol | ||
ThrowIfInvalid ( System.CommandLine.Command command ) : void |
public CommandLineConfiguration ( System.CommandLine.Command command, bool enablePosixBundling = true, bool enableDirectives = true, bool enableTokenReplacement = true, LocalizationResources? resources = null, IReadOnlyList |
||
command | System.CommandLine.Command | The root command for the parser. |
enablePosixBundling | bool | |
enableDirectives | bool | |
enableTokenReplacement | bool | |
resources | LocalizationResources? | Provide custom validation messages. |
middlewarePipeline | IReadOnlyList |
Provide a custom middleware pipeline. |
helpBuilderFactory | HelpBuilder>?.Func | Provide a custom help builder. |
tokenReplacer | TryReplaceToken? | Replaces the specified token with any number of other tokens. |
return | System.Collections.Generic |