public
Description: A bleeding-edge package manager.
Homepage: http://roastbeef.rubyforge.org
Clone URL: git://github.com/technomancy/roast-beef.git
o hai abort
technomancy (author)
Mon Apr 07 10:58:17 -0700 2008
commit  902536c84e2edceaa153edaede7bb50a559a8b2b
tree    8638fd81fecb63d8aa0ebc18cb413186e80fd183
parent  686572438c95aa2e53cabf28c12549f260cccad9
...
2
3
4
5
 
6
7
8
9
10
11
12
 
13
14
15
 
16
...
2
3
4
 
5
6
7
8
9
 
 
 
10
11
 
 
12
13
0
@@ -2,15 +2,12 @@
0
 
0
 require File.dirname(__FILE__) + '/../lib/roastbeef'
0
 
0
-puts(RoastBeef::USAGE) || exit(1) if ARGV.empty? or ARGV.include?('--help') or ARGV.include?('-h') or ARGV.include?('-?')
0
+abort RoastBeef::USAGE if ARGV.empty? or ARGV.include?('--help') or ARGV.include?('-h') or ARGV.include?('-?')
0
 
0
 begin
0
   RoastBeef.send(*ARGV)
0
 rescue NoMethodError
0
- puts "Unrecognized command #{ARGV.first}.\n\n"
0
- puts RoastBeef::USAGE
0
- exit 1
0
+ abort "Unrecognized command #{ARGV.first}.\n\n#{RoastBeef::USAGE}"
0
 rescue => e
0
- puts e.to_s
0
- exit 1
0
+ abort e.to_s
0
 end

Comments

    No one has commented yet.