Partager via


CommandLineConfiguration Constructeur

Définition

Initialise une nouvelle instance de la classe CommandLineConfiguration.

public CommandLineConfiguration (System.CommandLine.Command command, bool enablePosixBundling = true, bool enableDirectives = true, bool enableLegacyDoubleDashBehavior = false, System.CommandLine.LocalizationResources? resources = default, System.CommandLine.Parsing.ResponseFileHandling responseFileHandling = System.CommandLine.Parsing.ResponseFileHandling.ParseArgsAsLineSeparated, System.Collections.Generic.IReadOnlyList<System.CommandLine.Invocation.InvocationMiddleware>? middlewarePipeline = default, Func<System.CommandLine.Binding.BindingContext,System.CommandLine.Help.HelpBuilder>? helpBuilderFactory = default);
new System.CommandLine.CommandLineConfiguration : System.CommandLine.Command * bool * bool * bool * System.CommandLine.LocalizationResources * System.CommandLine.Parsing.ResponseFileHandling * System.Collections.Generic.IReadOnlyList<System.CommandLine.Invocation.InvocationMiddleware> * Func<System.CommandLine.Binding.BindingContext, System.CommandLine.Help.HelpBuilder> -> System.CommandLine.CommandLineConfiguration
Public Sub New (command As Command, Optional enablePosixBundling As Boolean = true, Optional enableDirectives As Boolean = true, Optional enableLegacyDoubleDashBehavior As Boolean = false, Optional resources As LocalizationResources = Nothing, Optional responseFileHandling As ResponseFileHandling = System.CommandLine.Parsing.ResponseFileHandling.ParseArgsAsLineSeparated, Optional middlewarePipeline As IReadOnlyList(Of InvocationMiddleware) = Nothing, Optional helpBuilderFactory As Func(Of BindingContext, HelpBuilder) = Nothing)

Paramètres

command
Command

Commande racine de l’analyseur.

enablePosixBundling
Boolean

true pour activer le regroupement POSIX ; sinon, false.

enableDirectives
Boolean

true pour activer l’analyse de directive ; sinon, false.

enableLegacyDoubleDashBehavior
Boolean

Active le comportement hérité du jeton, qui consiste à ignorer l’analyse -- des jetons suivants et à les placer dans la UnparsedTokens liste.

resources
LocalizationResources

Fournissez des messages de validation personnalisés.

responseFileHandling
ResponseFileHandling

Une des valeurs d’énumération qui spécifie la façon dont les fichiers de réponse (.rsp) sont gérés.

middlewarePipeline
IReadOnlyList<InvocationMiddleware>

Fournissez un pipeline d’intergiciels personnalisé.

helpBuilderFactory
Func<BindingContext,HelpBuilder>

Fournissez un générateur d’aide personnalisé.

S’applique à