From 62c63c1619d1dce04c61c5f4ea2bd4a85015ba66 Mon Sep 17 00:00:00 2001 From: John Mair Date: Fri, 28 Jan 2011 08:55:37 +1300 Subject: [PATCH] fixed alias_command docs --- lib/pry/command_base.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pry/command_base.rb b/lib/pry/command_base.rb index 8b23010e..684ba84c 100644 --- a/lib/pry/command_base.rb +++ b/lib/pry/command_base.rb @@ -87,9 +87,11 @@ class Pry # Create an alias for a command. # @param [String] new_command The alias name. # @param [String] orig_command The original command name. + # @param [String] desc The optional description. # @example # class MyCommands < Pry::CommandBase # alias_command "help_alias", "help" + # end def alias_command(new_command_name, orig_command_name, desc=nil) commands[new_command_name] = commands[orig_command_name].dup commands[new_command_name][:description] = desc if desc