diff options
author | Ryan Fitzgerald <rwfitzge@gmail.com> | 2012-08-11 18:26:59 -0700 |
---|---|---|
committer | Ryan Fitzgerald <rwfitzge@gmail.com> | 2012-08-11 18:27:26 -0700 |
commit | 1af4207c63d62ef6a5e8e161fdc39561c66600fa (patch) | |
tree | 4b1b1e7424c81013319b847fb39890de30ce471a /lib/pry/commands/cat.rb | |
parent | 8ce49ee081139791b41fee22e33fe313fa5590aa (diff) | |
download | pry-1af4207c63d62ef6a5e8e161fdc39561c66600fa.tar.gz |
Restore groups, convert most commands to class syntax
Diffstat (limited to 'lib/pry/commands/cat.rb')
-rw-r--r-- | lib/pry/commands/cat.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pry/commands/cat.rb b/lib/pry/commands/cat.rb index c4e9b8f7..d2df7d82 100644 --- a/lib/pry/commands/cat.rb +++ b/lib/pry/commands/cat.rb @@ -1,5 +1,9 @@ class Pry - Pry::Commands.create_command "cat", "Show code from a file, Pry's input buffer, or the last exception." do + Pry::Commands.create_command "cat" do + group 'Input and Output' + description "Show code from a file, Pry's input buffer, or the last " \ + "exception." + banner <<-USAGE Usage: cat FILE cat --ex [STACK_INDEX] |