Sha256: af9a8a32ab3b56025f7cb74c15a7cb00dcaaa2b8064413a199a5eb0d63fb5e9e
Contents?: true
Size: 779 Bytes
Versions: 1
Compression:
Stored size: 779 Bytes
Contents
#!/usr/bin/env ruby if (ARGV.include? '-h') || (ARGV.include? '--help') dir = File.dirname(__FILE__) + '/../lib' puts 'options: ' for file in Dir[dir + '/backtracer_*.rb'].sort.reverse puts '--' + File.basename(file)[11..-4] # of backtracer_locals.rb, just locals end puts 'ex: $ backtracer filename.rb arg1 arg2' puts 'ex: $ backtracer --simple filename.rb arg1 arg2' puts 'you can also do $ ruby -rtracerr for an improved tracer (though 1.9.2 has the same already patched)' exit end # expect # backtracer --plain --simple filename options if ARGV[0][0..1] == '--' require 'backtracer_' + ARGV[0][2..-1] # take it off, too ARGV.shift else require 'backtracer' end $0 = File.expand_path ARGV[0] # for their benefit :) ARGV.shift load $0
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backtracer-0.4.1 | bin/backtracer |