共用方式為


CommandLineBuilderExtensions.UseTypoCorrections 方法

定義

設定應用程式,以在偵測到剖析錯誤時提供替代建議。

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

參數

builder
CommandLineBuilder

命令行產生器。

maxLevenshteinDistance
Int32

根據命令行輸入中偵測到的錯字,建議的最大 Levenshtein 距離。

傳回

的相同實例 CommandLineBuilder

適用於