CommandLineConfiguration コンストラクター

定義

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)

パラメーター

command
Command

パーサーのルート コマンド。

enablePosixBundling
Boolean

true POSIX バンドルを有効にするには、それ以外の場合は false

enableDirectives
Boolean

true ディレクティブの解析を有効にするには、それ以外の場合は false

enableLegacyDoubleDashBehavior
Boolean

トークンの従来の動作を -- 有効にします。これは、後続のトークンの解析を無視して一覧に UnparsedTokens 配置することです。

resources
LocalizationResources

カスタム検証メッセージを指定します。

responseFileHandling
ResponseFileHandling

応答ファイル (.rsp) の処理方法を指定する列挙値の 1 つ。

middlewarePipeline
IReadOnlyList<InvocationMiddleware>

カスタム ミドルウェア パイプラインを指定します。

helpBuilderFactory
Func<BindingContext,HelpBuilder>

カスタム ヘルプ ビルダーを提供します。

適用対象