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:
parent
94b7ad593e
commit
b5592908ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue