From 0ba29a8cb702ab961f91ec635875e18ec2d6e3de Mon Sep 17 00:00:00 2001 From: Robert Gleeson Date: Sun, 23 Mar 2014 14:15:51 +0100 Subject: [PATCH] write consistent casing in `help` command. --- lib/pry/commands/help.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pry/commands/help.rb b/lib/pry/commands/help.rb index f105e8eb..eb09e615 100644 --- a/lib/pry/commands/help.rb +++ b/lib/pry/commands/help.rb @@ -59,8 +59,8 @@ class Pry # @param [Array] commands # @return [String] The generated help string. def help_text_for_commands(name, commands) - "#{text.bold(name)}\n" << commands.map do |command| - " #{command.options[:listing].to_s.ljust(18)} #{command.description}" + "#{text.bold(name.capitalize)}\n" << commands.map do |command| + " #{command.options[:listing].to_s.ljust(18)} #{command.description.capitalize}" end.join("\n") end