Add renameCommand method for transparent command renaming.