UsageWriterIncludeCommandHelpInstruction Property

Gets or sets a value that indicates whether a message is shown at the bottom of the command list that instructs the user how to get help for individual commands.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public TriState IncludeCommandHelpInstruction { get; set; }

Property Value

TriState
TriStateAuto to show the instruction if all commands have the default help argument; TriStateTrue to always show the instruction; otherwise, TriStateFalse. The default value is TriStateAuto.

Remarks

If this property is TriStateAuto, the instruction will be shown under the following conditions:

If set to TriStateTrue, the message is shown even if not all commands meet these conditions. You can use this to show the message when you know it's valid despite this (e.g. you have a command using ICommandWithCustomParsing which implements its own help argument that matches the other commands).

To customize the message, override the WriteCommandHelpInstruction(String, String, String) method.

See Also