Edit

Share via


HelpOption Constructors

Definition

Overloads

HelpOption()

When added to a Command, it configures the application to show help when one of the following options are specified on the command line:

-h
/h
--help
-?
/?
HelpOption(String, String[])

When added to a Command, it configures the application to show help when given name or one of the aliases are specified on the command line.

HelpOption()

Source:
HelpOption.cs

When added to a Command, it configures the application to show help when one of the following options are specified on the command line:

-h
/h
--help
-?
/?
public:
 HelpOption();
public HelpOption();
Public Sub New ()

Applies to

HelpOption(String, String[])

Source:
HelpOption.cs

When added to a Command, it configures the application to show help when given name or one of the aliases are specified on the command line.

public:
 HelpOption(System::String ^ name, ... cli::array <System::String ^> ^ aliases);
public HelpOption(string name, params string[] aliases);
new System.CommandLine.Help.HelpOption : string * string[] -> System.CommandLine.Help.HelpOption
Public Sub New (name As String, ParamArray aliases As String())

Parameters

name
String
aliases
String[]

Applies to