Freigeben über


CommandLineBuilderExtensions.UseDefaults(CommandLineBuilder) Methode

Definition

Verwendet die Standardkonfiguration.

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

Parameter

builder
CommandLineBuilder

Ein Befehlszeilen-Generator.

Gibt zurück

Derselbe instance von CommandLineBuilder.

Hinweise

Das Aufrufen dieser Methode entspricht dem Aufrufen von:

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

Gilt für: