Compartilhar via


CommandLineBuilderExtensions.UseDefaults(CommandLineBuilder) Método

Definição

Usa a configuração padrão.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Builder::CommandLineBuilder ^ UseDefaults(System::CommandLine::Builder::CommandLineBuilder ^ builder);
public static System.CommandLine.Builder.CommandLineBuilder UseDefaults (this System.CommandLine.Builder.CommandLineBuilder builder);
static member UseDefaults : System.CommandLine.Builder.CommandLineBuilder -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseDefaults (builder As CommandLineBuilder) As CommandLineBuilder

Parâmetros

builder
CommandLineBuilder

Um construtor de linha de comando.

Retornos

A mesma instância de CommandLineBuilder.

Comentários

Chamar esse método é o equivalente a chamar:

builder
  .UseVersionOption()
  .UseHelp()
  .UseEnvironmentVariableDirective()
  .UseParseDirective()
  .UseSuggestDirective()
  .RegisterWithDotnetSuggest()
  .UseTypoCorrections()
  .UseParseErrorReporting()
  .UseExceptionHandler()
  .CancelOnProcessTermination();

Aplica-se a