summaryrefslogtreecommitdiff
path: root/lib/pry/commands/raise_up.rb
diff options
context:
space:
mode:
authorRyan Fitzgerald <rwfitzge@gmail.com>2012-08-11 18:26:59 -0700
committerRyan Fitzgerald <rwfitzge@gmail.com>2012-08-11 18:27:26 -0700
commit1af4207c63d62ef6a5e8e161fdc39561c66600fa (patch)
tree4b1b1e7424c81013319b847fb39890de30ce471a /lib/pry/commands/raise_up.rb
parent8ce49ee081139791b41fee22e33fe313fa5590aa (diff)
downloadpry-1af4207c63d62ef6a5e8e161fdc39561c66600fa.tar.gz
Restore groups, convert most commands to class syntax
Diffstat (limited to 'lib/pry/commands/raise_up.rb')
-rw-r--r--lib/pry/commands/raise_up.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pry/commands/raise_up.rb b/lib/pry/commands/raise_up.rb
index 922f6b61..0179343f 100644
--- a/lib/pry/commands/raise_up.rb
+++ b/lib/pry/commands/raise_up.rb
@@ -1,7 +1,10 @@
class Pry
# N.B. using a regular expresion here so that "raise-up 'foo'" does the right thing.
- Pry::Commands.create_command(/raise-up(!?\b.*)/, :listing => 'raise-up') do
+ Pry::Commands.create_command(/raise-up(!?\b.*)/) do
+ group 'Context'
description "Raise an exception out of the current pry instance."
+ command_options :listing => 'raise-up'
+
banner <<-BANNER
Raise up, like exit, allows you to quit pry. Instead of returning a value however, it raises an exception.
If you don't provide the exception to be raised, it will use the most recent exception (in pry _ex_).