UsageWriter.UseWhiteSpaceValueSeparator Property

Gets or sets a value indicating whether white space, rather than the first element of the CommandLineParser.NameValueSeparators property, is used to separate arguments and their values in the command line syntax.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
C#
public bool UseWhiteSpaceValueSeparator { get; set; }

Property Value

Boolean
true if the command line syntax uses a white space value separator; false if it uses the first element of the CommandLineParser.NameValueSeparators property. The default value is true.

Remarks

If this property is true, an argument would be formatted in the command line syntax as "-Name <Value>" (using default formatting), with a white space character separating the argument name and value description. If this property is false, it would be formatted as "-Name:<Value>", using a colon as the separator (when using the default separators).

The command line syntax will only use a white space character as the value separator if both the CommandLineParser.AllowWhiteSpaceValueSeparator property and the UseWhiteSpaceValueSeparator property are true.

See Also