Setting shortcut for command line options

Hi there.

Shortcuts for command line options seem to be automatically detected. Lets say I have two options - “Dx” and “Dy”. Rhino selects the shorcuts “D” (for Dx) and “Y” for (Dy). However, I would like X and Y instead. Is this possible?

getter.SetCommandPrompt("Select nodes to restrain");
getter.AddOptionToggle("Dx", ref _fixDx);
getter.AddOptionToggle("Dy", ref _fixDy);

Thank you,


Hi @mohamed.moussa89,

Rhino automatically assigns shortcuts for command line options. I’ve found that the best strategy is to add options in alphabetical order.

– Dale