Skip to content
Browse files

Fixed command help screens

  • Loading branch information...
1 parent 4bcc399 commit 911bcd831e77c9a8d2048e30523e73ba18305002 @koraktor committed Jan 23, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/rubikon/application/instance_methods.rb
View
6 lib/rubikon/application/instance_methods.rb
@@ -245,9 +245,9 @@ def help_command
app_help = lambda { |info| @__app__.instance_eval { help(info) } }
unless cmd.nil?
- cmd = cmd.to_sym
- if commands.key? cmd
- puts commands[cmd].help
+ name = cmd.to_sym
+ if commands.key? name
+ puts commands[name].help
else
app_help.call("The command \"#{cmd}\" is undefined. The following commands are available:")
end

0 comments on commit 911bcd8

Please sign in to comment.
Something went wrong with that request. Please try again.