1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Commands with empty descriptions should not appear in help

This commit is contained in:
Mon ouïe 2011-04-27 17:24:52 +02:00
parent 94b7ad593e
commit b5592908ef

View file

@ -148,7 +148,7 @@ class Pry
help_text = heading("Command List: ") + "\n"
commands.each do |key, command|
if command.description
if command.description && !command.description.empty?
help_text << "#{key}".ljust(18) + command.description + "\n"
end
end