How to set the input letter of the command line(c++)?

Hi;

bool b = true;
	CRhinoGetObject go;
	go.SetCommandPrompt(L"Select object");
	go.AddCommandOptionToggle(RHCMDOPTNAME(L"Opt"), RHCMDOPTVALUE(L"Off"), RHCMDOPTVALUE(L"On"), b, &b);
	go.EnablePreSelect(true);
	go.GetObjects(1, 0);
	if (go.CommandResult() != CRhinoCommand::success)
		return go.CommandResult();
	return CRhinoCommand::success;

In the code above, Rhino will set the input letters off Command Option Toggle to ‘O’, how can I set it to other letters, For example ‘A’ ?

Hi @pythonuser

ON_wString str_test_local(L"Opt"); //your localization
CRhinoCommandOptionName con_test(L"A", str_test_local);

RHCMDOPTNAME(L"Opt") => con_test

Hi @Easy ;
Thank you.