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实例。

适用于