From a15b1f7f16c91ad6a6b028f64dc2494454cdb3ef Mon Sep 17 00:00:00 2001 From: John Mair Date: Sun, 24 Apr 2011 12:27:22 +1200 Subject: [PATCH] Improved some inline documentation for stat and hist commands --- lib/pry/commands.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pry/commands.rb b/lib/pry/commands.rb index 897eacfe..b78ea6fc 100644 --- a/lib/pry/commands.rb +++ b/lib/pry/commands.rb @@ -29,7 +29,7 @@ class Pry command ".", "All text following a '.' is forwarded to the shell." do end - command "hist", "Show and replay Readline history" do |*args| + command "hist", "Show and replay Readline history. Type `hist --help` for more info." do |*args| hist_array = Readline::HISTORY.to_a if args.empty? @@ -39,7 +39,7 @@ class Pry end opts = Slop.parse(args) do |opt| - opt.banner "Usage: hist [--replay START..END]\ne.g hist --replay 2..8" + opt.banner "Usage: hist [--replay START..END]\nView and replay history\ne.g hist --replay 2..8" opt.on :r, :replay, 'The line (or range of lines) to replay.', true, :as => Range opt.on :h, :help, 'Show this message.', :tail => true do output.puts opt.help @@ -88,7 +88,7 @@ class Pry run ".ri", *args end - command "stat", "View method information and set _file_ and _dir_ locals" do |*args| + command "stat", "View method information and set _file_ and _dir_ locals. Type `stat --help` for more info." do |*args| target = target() opts = Slop.parse!(args) do |opts|