Click or drag to resize

WriteUsageOptionsArgumentDescriptionFormat Property

Gets or sets the format string to use for the description of an argument.

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
public string ArgumentDescriptionFormat { get; set; }

Property Value

Type: String
The format string to use for the description of an argument; the default value is "    {3}{0} {2}\n{1}{4}{5}\n" (note that it contains line breaks).
Remarks

This format string is used for the detailed descriptions of the arguments, which is written after the command line syntax.

The ArgumentDescriptionIndent property should be set to something appropriate for this format. For example, in the default format, the description is indented by 8 characters.

This format string can have four placeholders, which are used for the argument name, the description, the value description (formatted according to the ValueDescriptionFormat), the primary argument name prefix, the default value, and the aliases. If the format string ends in a line break, the command descriptions will be separated by a blank line (this is the default).

Placeholder {4} will be replaced with the default value of an argument, formatted according to the DefaultValueFormat property. If the IncludeDefaultValueInDescription property is set to or the property's default value is , this placeholder will be set to an empty string ("").

Placeholder {5} will be replaced with the aliases of an argument, formatted according to the AliasFormat or AliasesFormat property. If the IncludeAliasInDescription property is set to or the property has no aliases, this placeholder will be set to an empty string ("").

Setting this property to will revert it to its default value.

See Also