1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

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
This commit is contained in:
Conrad Irwin 2012-01-20 00:52:18 -08:00
parent 75af6ad68d
commit 9c6eaafc04

View file

@ -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