From 9c6eaafc045df469312fd8166b838af6140ec4c0 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Fri, 20 Jan 2012 00:52:18 -0800 Subject: [PATCH] hist -h,-t,-g -> -H,-T,-G. -h should be --help, so -H makes more sense for --head. -t follows suit for consistency. -g -> -G too, though mainly for consistency with ls -G --- lib/pry/default_commands/input.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pry/default_commands/input.rb b/lib/pry/default_commands/input.rb index 221da629..5b43dc65 100644 --- a/lib/pry/default_commands/input.rb +++ b/lib/pry/default_commands/input.rb @@ -148,10 +148,10 @@ class Pry USAGE def options(opt) - opt.on :h, :head, "Display the first N items.", :optional => true, :as => Integer - opt.on :t, :tail, "Display the last N items.", :optional => true, :as => Integer + opt.on :H, :head, "Display the first N items.", :optional => true, :as => Integer + opt.on :T, :tail, "Display the last N items.", :optional => true, :as => Integer opt.on :s, :show, "Show the given range of lines.", :optional => true, :as => Range - opt.on :g, :grep, "Show lines matching the given pattern.", true, :as => String + opt.on :G, :grep, "Show lines matching the given pattern.", true, :as => String opt.on :c, :clear, "Clear the current session's history." opt.on :r, :replay, "Replay a line or range of lines.", true, :as => Range opt.on :save, "Save history to a file.", true, :as => Range