CommandLineOption

References
public sealed class CommandLineOption

Properties

CurrentListOptionIndex

#ExampleSince v5.0
public int CurrentListOptionIndex { get; }

CurrentNumericValue

#Since v8.0
public double CurrentNumericValue { get; }

CurrentToggleValue

#Since v8.0
public bool? CurrentToggleValue { get; }

EnglishName

#Since v5.0
The English command option name
public string EnglishName { get; }

Index

#Since v5.0
public int Index { get; }

LocalName

#Since v6.24
The localized command option name
public string LocalName { get; }

OptionType

#Since v8.0
The type of this command line option
public CommandLineOptionType OptionType { get; }

StringOptionValue

#Since v6.24
Assigned by RhinoGet.Get if an option value is specified in a script or by a command window control.
public string StringOptionValue { get; }

Methods

IsValidOptionName

#Since v5.0
Test a string to see if it can be used as an option name in any of the RhinoGet::AddCommandOption...() functions.
public static bool IsValidOptionName(
optionName
The string to be tested.
)
true if string can be used as an option name.

IsValidOptionValueName

#Since v5.0
Test a string to see if it can be used as an option value in RhinoGet::AddCommandOption, RhinoGet::AddCommandOptionToggle, or RhinoGet::AddCommandOptionList.
public static bool IsValidOptionValueName(
optionValue
The string to be tested.
)
true if string can be used as an option value.

ListOptions

#Since v8.0
If this OptionType is a list, then the option should contain a list of values that the user can pick from.
public string[] ListOptions(
english
return the English or local versions of the list options
)

ToggleValues

#Since v8.0
public void ToggleValues(
english,
out string
offValue,
out string
onValue
)