CommandLineBuilderExtensions.UseTypoCorrections 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
配置应用程序,以在检测到分析错误时提供替代建议。
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实例。