Udostępnij za pośrednictwem


CommandLineBuilderExtensions.EnableLegacyDoubleDashBehavior Metoda

Definicja

Określa zachowanie podczas analizowania podwójnej kreski (--) w wierszu polecenia.

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

Parametry

value
Boolean

Zwraca

Uwagi

Po ustawieniu truewartości wszystkie następujące -- tokeny zostaną umieszczone w kolekcji UnparsedTokens . W przypadku ustawienia wartości falsewszystkie poniższe -- tokeny będą traktowane jako argumenty poleceń, nawet jeśli pasują do istniejącej opcji.

Dotyczy