write consistent casing in `help` command.

This commit is contained in:
Robert Gleeson 2014-03-23 14:15:51 +01:00
parent c6e776f45a
commit 0ba29a8cb7
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ class Pry
# @param [Array<Pry::Command>] 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