Sha256: 4f0249e2fce2f37eb21d06fedf9fe08711ed17b818e162876d147239b8f7753b

Contents?: true

Size: 822 Bytes

Versions: 7

Compression:

Stored size: 822 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 '$ backtracer --simple filename.rb arg1 arg2'
 puts 'or its equivalent: $ ruby -rbacktracer_simple filename.rb arg1 arg2'
 puts '$ ruby -rtracerr'
 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 = a = File.expand_path( ARGV[0]) # set $0 for their benefit :)
# known buggy on mingw for some reason?
ARGV.shift
load a

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
backtracer-0.6.5 bin/backtracer
backtracer-0.6.3 bin/backtracer
backtracer-0.6.2 bin/backtracer
backtracer-0.6.1 bin/backtracer
backtracer-0.5.2 bin/backtracer
backtracer-0.5.1 bin/backtracer
backtracer-0.5.0 bin/backtracer