public bool AllowWhiteSpaceValueSeparator { get; }
Public ReadOnly Property AllowWhiteSpaceValueSeparator As Boolean
Get
Dim instance As CommandLineParser
Dim value As Boolean
value = instance.AllowWhiteSpaceValueSeparator
public:
property bool AllowWhiteSpaceValueSeparator {
bool get ();
}
If the AllowWhiteSpaceValueSeparator property is , the value of an argument can be separated from its name either by using the characters specified in the NameValueSeparators property, or by using white space (i.e. by having a second argument that has the value). Given a named argument named "Sample", the command lines -Sample:value and -Sample value are both valid and will assign the value "value" to the argument. In the latter case, the values "-Sample" and "value" will be two separate entry in the String array with the unparsed arguments.
If the AllowWhiteSpaceValueSeparator property is , only the characters specified in the NameValueSeparators property are allowed to separate the value from the name. The command line -Sample:value still assigns the value "value" to the argument, but for the command line `-Sample value` the argument is considered not to have a value (which is only valid if CommandLineArgumentIsSwitch is ), and "value" is considered to be the value for the next positional argument.
For switch arguments (the CommandLineArgumentIsSwitch property is ), only the characters specified in the NameValueSeparators property are allowed to specify an explicit value regardless of the value of the AllowWhiteSpaceValueSeparator property. Given a switch argument named "Switch" the command line -Switch false is interpreted to mean that the value of "Switch" is and the value of the next positional argument is "false", even if the AllowWhiteSpaceValueSeparator property is .
Use the ParseOptions or ParseOptionsAttribute class to change this value.