Udostępnij za pośrednictwem


CommandLineBuilderExtensions.EnableDirectives Metoda

Definicja

Umożliwia analizatorowi rozpoznawanie dyrektyw wiersza polecenia.

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

Parametry

builder
CommandLineBuilder

Konstruktor wiersza polecenia.

value
Boolean

Jeśli ustawiono wartość true, dyrektywy są włączone. W przeciwnym razie są one analizowane jak każdy inny token.

Zwraca

To samo wystąpienie klasy CommandLineBuilder.

Dotyczy

Zobacz też