# File lib/pry/command_set.rb, line 224 def rename_command(new_name, old_name, options={}) cmd = find_command_by_name_or_listing(old_name) options = { :listing => new_name, :description => cmd.description }.merge!(options) commands[new_name] = cmd.dup commands[new_name].name = new_name commands[new_name].description = options.delete(:description) commands[new_name].options.merge!(options) commands.delete(cmd.name) end