CommandLineParserHelpArgument Property

Gets the automatic help argument, or an argument with the same name, if there is one.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public CommandLineArgument? HelpArgument { get; }

Property Value

CommandLineArgument
A CommandLineArgument instance, or if the automatic help argument was disabled using the ParseOptions class or the ParseOptionsAttribute attribute.

Remarks

If the automatic help argument is enabled, this will return either the created help argument, or the argument that conflicted with its name or one of its aliases, which is assumed to be the argument used to display help in that case.

This is used the UsageWriterWriteMoreInfoMessage method to determine whether to show the message and the actual name of the argument to use.

See Also