From 3cbeb1cd26f191751f42e08bf17bb466fd722232 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Sun, 26 Feb 2012 01:00:50 -0800 Subject: [PATCH] Include listing in help of non-class commands --- lib/pry/command.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pry/command.rb b/lib/pry/command.rb index 77c2d269..578b8a9a 100644 --- a/lib/pry/command.rb +++ b/lib/pry/command.rb @@ -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.