Include listing in help of non-class commands

This commit is contained in:
Conrad Irwin 2012-02-26 01:00:50 -08:00
parent 87b141a6ab
commit 3cbeb1cd26
1 changed files with 3 additions and 1 deletions

View File

@ -424,7 +424,9 @@ class Pry
end
end
def help; description; end
def help
"#{command_options[:listing].to_s.ljust(18)} #{description}"
end
end
# A super-class ofr Commands with structure.