I’m wondering what is the type of characters allowed in the GetBaseClass.AddOptionList Method’s parameter of listValues.
In Rhinocommon, it states that it simply states:
Type: System.Collections.Generic.IEnumerable
The string values.
However, after testing, it appears that spaces and certain characters aren’t allowed.
Would greatly appreciate if there was a list of characters that aren’t allowed.
Hi @ongys1992,
In general, stick to using letters and numbers, as white space and other non-letter and number characters are used by the command line parser for other things.
– Dale
Hi @ongys1992, i addition to what dale wrote above you might use below method to test a string for beeing valid as a command line option:
Rhino.Input.Custom.CommandLineOption.IsValidOptionName
_
c.
1 Like
Thanks for the replies! Really helped me on this.