Sha256: 88afe715442d904cf0b820305829ad0a4226871e474b52f0b4b8fb6372d18336

Contents?: true

Size: 766 Bytes

Versions: 1

Compression:

Stored size: 766 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']
  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.0 bin/backtracer