Sdílet prostřednictvím


CommandLineBuilderExtensions.UseTypoCorrections Metoda

Definice

Nakonfiguruje aplikaci tak, aby poskytovala alternativní návrhy při zjištění chyby analýzy.

public static System.CommandLine.Builder.CommandLineBuilder UseTypoCorrections (this System.CommandLine.Builder.CommandLineBuilder builder, int maxLevenshteinDistance = 3);
static member UseTypoCorrections : System.CommandLine.Builder.CommandLineBuilder * int -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseTypoCorrections (builder As CommandLineBuilder, Optional maxLevenshteinDistance As Integer = 3) As CommandLineBuilder

Parametry

builder
CommandLineBuilder

Tvůrce příkazového řádku.

maxLevenshteinDistance
Int32

Maximální levenshtein vzdálenost pro návrhy na základě zjištěných překlepů ve vstupu příkazového řádku.

Návraty

Stejná instance .CommandLineBuilder

Platí pro