The string cmdName is added to a tab-completion list for the console.
Tab completion is case-insensitive, but the completed string is rewritten with the stored capitalization.
Commands added to the commands[] array are automatically addded for tab-completion by the function CG_InitConsoleCommands(), and, in fact, this is the only function that calls this trap in the baseq3 game source.