次の方法で共有


CommandLineBuilderExtensions.EnableLegacyDoubleDashBehavior メソッド

定義

コマンド ラインで二重ダッシュ (--) を解析するときの動作を決定します。

public static System.CommandLine.Builder.CommandLineBuilder EnableLegacyDoubleDashBehavior (this System.CommandLine.Builder.CommandLineBuilder builder, bool value = true);
static member EnableLegacyDoubleDashBehavior : System.CommandLine.Builder.CommandLineBuilder * bool -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function EnableLegacyDoubleDashBehavior (builder As CommandLineBuilder, Optional value As Boolean = true) As CommandLineBuilder

パラメーター

value
Boolean

戻り値

注釈

true設定すると、次 -- のすべてのトークンがコレクションに UnparsedTokens 配置されます。 に false設定すると、次 -- のすべてのトークンは、既存のオプションと一致する場合でも、コマンド引数として扱われます。

適用対象